amezdari
amezdari

Reputation: 13

Cannot install ionic with npm

I want to install ionic with "npm install -g ionic" but i have this message :

npm ERR! Linux 3.2.0-39-generic npm ERR! argv "node" "/usr/local/bin/npm" "install" "ionic" npm ERR! node v0.6.12 npm ERR! npm v3.3.5

npm ERR! Object # has no method 'exists' npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /home/linux-sysalia6/npm-debug.log npm ERR! code 1

I work with ubuntu thx!

Upvotes: 0

Views: 552

Answers (1)

Bert Vermeire
Bert Vermeire

Reputation: 416

Upgrade your node installation.
v0.6.12 is quite old and is missing the fs.exists function needed by npm.

You can update node on Ubuntu using these commands:

curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs

Upvotes: 2

Related Questions