Tirthankar Baisya
Tirthankar Baisya

Reputation: 1

why is my cmd giving error that it cannot find node-modules?

enter image description here Here is my command prompt.

Is it necessary to have the module folder and the folder in which I am keeping the code together??

Upvotes: 0

Views: 191

Answers (1)

michmich112
michmich112

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

Related Questions