1

I am getting an error when I hit npm -v. Actually this happent after I tried a command to update my npm version from 3.5.2 to version 4 or higher. The command I used is this

sudo ln -sf ~/.nvm/versions/node/v8.5.0/bin/node /usr/bin/nodejs

Now, as soon as I hit the npm -v, it is throwing an error saying

bash: /usr/bin/npm: No such file or directory After this I un-insatlled node and re-insatlled but it's not working. Please help me.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.