Reputation: 49
I was in my user folder (windows 10) and saw that there was a folder named node_modules and it had a few modules in it. I didn't want it in that directory, and went to look for the other modules which was located in the nodejs install directory. So I just cut and pasted it to the node_modules folder there. And now, node.js can't find the modules. How do I fix this? Reinstalling the modules didn't work
This is my node_modules folder: https://i.sstatic.net/2g2hQ.png Everything is there, but when I run the script it doesn't find it https://i.sstatic.net/7ryeM.png And it was working fine yesterday...
Upvotes: 0
Views: 1287
Reputation: 331
delete the node_modules folder and just install all dependencies with npm i
.
Upvotes: 3