Trying to run "npm install" => command not found

Hey forum - I always remove bootstrap from Roots, but today for the first time, running “npm install” in the theme root just says “command not found.”

This is my own Debian 7.4 VPS. Nothing fancy.

Any ideas appreciated.

Well for whatever reason it doesn’t think you have npm installed. Why not try re-installing Node?

Thanks man. I don’t know how to do that actually.

I copied the node folder from another ROOT install into this one, but it still isn’t working. So…I just setup the site on another server essentially, and then copied it over to this new one.

I’m on Debian 7.4 and will look into installing node if that’s all it is. Thanks - I’m a Linux admin only as much as I have to be.

npm comes packaged with node. https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#debian-lmde

Nice man, thanks for the info.

BTW, anyone reading this, I’m on a VPS at Linode. Currently Debian 7.5 (Wheezy). Running these commands in terminal (SSH connection) worked:

echo “deb http://ftp.us.debian.org/debian wheezy-backports main” >> /etc/apt/sources.list
apt-get update
apt-get install nodejs-legacy
curl --insecure https://www.npmjs.org/install.sh | bash

Thanks again swalkinshaw.

Another note here: npm installed, but when I’d try and run Grunt it would come back with a not found error.

I had to do this command in Debian from my theme folder to get it to work:

npm install -g grunt-cli