Reputation: 1
Is it necessary to have the module folder and the folder in which I am keeping the code together??
Upvotes: 0
Views: 191
Reputation: 774
It can't find the module named index
in the current path. check you package.json file under the script item, you should see a parameter with the following value: "start":"node index". make sure index is the file with you javascript code, i.e. make sure its node index.js
Upvotes: 1