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

**URL:** <https://discourse.roots.io/t/trying-to-run-npm-install-command-not-found/1582>\
**Category:** uncategorized\
**Created:** [April 26, 2014, 4:03am UTC](https://discourse.roots.io/t/trying-to-run-npm-install-command-not-found/1582 "2014-04-26T04:03:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![theatereleven](https://discourse.roots.io/user_avatar/discourse.roots.io/theatereleven/32/6373_2.png) [@theatereleven](https://discourse.roots.io/u/theatereleven)\
**Post date:** [April 26, 2014, 4:03am UTC](https://discourse.roots.io/t/trying-to-run-npm-install-command-not-found/1582/1 "2014-04-26T04:03:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![swalkinshaw](https://discourse.roots.io/user_avatar/discourse.roots.io/swalkinshaw/32/6288_2.png) [@swalkinshaw](https://discourse.roots.io/u/swalkinshaw)\
**Post date:** [April 27, 2014, 10:49pm UTC](https://discourse.roots.io/t/trying-to-run-npm-install-command-not-found/1582/2 "2014-04-27T22:49:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![theatereleven](https://discourse.roots.io/user_avatar/discourse.roots.io/theatereleven/32/6373_2.png) [@theatereleven](https://discourse.roots.io/u/theatereleven)\
**Post date:** [April 28, 2014, 12:12am UTC](https://discourse.roots.io/t/trying-to-run-npm-install-command-not-found/1582/3 "2014-04-28T00:12:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![swalkinshaw](https://discourse.roots.io/user_avatar/discourse.roots.io/swalkinshaw/32/6288_2.png) [@swalkinshaw](https://discourse.roots.io/u/swalkinshaw)\
**Post date:** [April 28, 2014, 12:16am UTC](https://discourse.roots.io/t/trying-to-run-npm-install-command-not-found/1582/4 "2014-04-28T00:16:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![theatereleven](https://discourse.roots.io/user_avatar/discourse.roots.io/theatereleven/32/6373_2.png) [@theatereleven](https://discourse.roots.io/u/theatereleven)\
**Post date:** [April 29, 2014, 3:16am UTC](https://discourse.roots.io/t/trying-to-run-npm-install-command-not-found/1582/5 "2014-04-29T03:16:11Z")

</div>

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](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](https://www.npmjs.org/install.sh) | bash

Thanks again swalkinshaw.

---

<div class="post-metadata">

**Author:** ![theatereleven](https://discourse.roots.io/user_avatar/discourse.roots.io/theatereleven/32/6373_2.png) [@theatereleven](https://discourse.roots.io/u/theatereleven)\
**Post date:** [May 2, 2014, 7:46pm UTC](https://discourse.roots.io/t/trying-to-run-npm-install-command-not-found/1582/6 "2014-05-02T19:46:13Z")

</div>

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
