Languages

Node.js - Node.js: require() and MODULE_NOT_FOUND error

0 points
Asked by:
Dollie-Rutledge
476

When I tried to import express I got this error. Anyone knows how to fix it?

Error message:

Node.js: require() and MODULE_NOT_FOUND
1 answer
0 points
Answered by:
Dollie-Rutledge
476

The problem was a typo I made when trying to import express.

But as I read, you can also have a problem when you don't use absolute path to the folder, so be sure to do that.

0 comments Add comment
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join