On Ubuntu 16.04 I accidently deleted the 'node_modules' folder so that I can't run npm anymore. I get the error:
bash: /usr/local/bin/npm: No such file or directory.
How can I fix this?
If package.json is present in your project directory, which usually is, then run npm install and all the packages will be restored as well as the node_modules directory, where they are stored.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With