Errors attempting to install grunt on Ubuntu 12.04LTS

Hey, trying to follow steps in this blog post:

http://roots.io/modifying-bootstrap-in-roots/

When I try and install grunt on my Ubuntu server, I get the following error:

root@galaxy-one:~# npm install -g grunt-cli
npm http GET http://registry.npmjs.org/grunt-cli
npm http 304 http://registry.npmjs.org/grunt-cli

npm ERR! Error: No compatible version found: grunt-cli
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR!     at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR!     at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR!     at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR!     at /usr/share/npm/lib/cache.js:408:5
npm ERR!     at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR!     at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /root/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.9.3-x86_64-linode33
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "grunt-cli"
npm ERR! cwd /root
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: grunt-cli
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/npm-debug.log
npm not ok

Any ideas on this? I set the registry right (I think) by typing in:

npm config set registry http://registry.npmjs.org/

Thanks for any help!

Have you tried updating node? Your version seems a little out of date.

I don’t know if you found this page, but this gives you a PPA you can use that will keep Node.js much more up to date than what the default Ubuntu repo’s give you:

Yeah your Node version is really old. Upgrading will fix it.

BOO-YAH!

You guys rock. That did the trick…thanks!

For anyone else with this problem, the exact steps/answer lies at the link above from Kalen.

And since I can post links again, I updated the link so you can actually click it :smile: