Reputation: 2798
I am unable to use NPM. Whenever I type npm -v or npm install it shoe error. Please find it below as
bash: /usr/local/bin/npm: /usr/local/bin/node: bad interpreter: No such file or directory
I tried installing npm and after install it says a newer version is already installed.But wen I run any npm specific command it still throws that same error.
I was previously using node pre version 11.x.x, however due to some compatibility issues I had to remove it and use the default nodejs that comes with Ubuntu LTS 14.04
Please help me in finding the root cause and how can I make npm work.
Upvotes: 1
Views: 1905
Reputation: 1622
You could try instead:
curl https://npmjs.org/install.sh | sudo sh
That will install the last npm
.
Upvotes: 0