I installed node and npm using the instructions provided here
I was able to use node successfully. However, as I attempt to install the "Formidable" node module, I get the following error:
$npm install formidable
bash: /usr/local/bin/npm: /usr/local/bin/node: bad interpreter: No such file or directory
When I do a which npm
I get the following output:
$which npm
/usr/local/bin/npm
I have no clue on what is wrong with npm here - any idea on how I can fix this?
/usr/local/bin/
. The packages as you used in the instructions you linked to don't do this. I think you've installed another Node from source as well. Please tell the whole story. – gertvdijk Feb 3 '13 at 21:54$sudo apt-get remove --purge nodejs npm
but this did not work.node --version
after installing 0.8.18 still showed 0.8.14. So, what I did was follow a post which I can't find now - it basically instructed to dowhich node
followed byrm -r /usr/local/bin/...
- basically some node related files under that directory. Now, after this, i re-installed node and it was the updated version. Its working fine, but npm isn't. – user109187 Feb 4 '13 at 15:06