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

0 points
Asked by:
Dirask Community

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:
Dirask Community

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.

❤️💻 🙂