简体   繁体   English

无法使用NPM安装Ionic

[英]Cannot install ionic with npm

I want to install ionic with "npm install -g ionic" but i have this message : 我想使用“ npm install -g ionic”安装ionic,但是我有此消息:

npm ERR! npm ERR! Linux 3.2.0-39-generic npm ERR! Linux 3.2.0-39-通用npm ERR! argv "node" "/usr/local/bin/npm" "install" "ionic" npm ERR! argv“节点”“ / usr / local / bin / npm”“安装”“ ionic” npm ERR! node v0.6.12 npm ERR! 节点v0.6.12 npm ERR! npm v3.3.5 npm v3.3.5

npm ERR! npm ERR! Object # has no method 'exists' npm ERR! 对象#没有方法“存在” npm ERR! npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! 如果您需要帮助,可以在以下位置报告此错误:npm ERR! https://github.com/npm/npm/issues https://github.com/npm/npm/issues

npm ERR! npm ERR! Please include the following file with any support request: npm ERR! 请在支持请求中包含以下文件:npm ERR! /home/linux-sysalia6/npm-debug.log npm ERR! /home/linux-sysalia6/npm-debug.log npm错误! code 1 代码1

I work with ubuntu thx! 我与ubuntu thx合作!

Upgrade your node installation. 升级节点安装。
v0.6.12 is quite old and is missing the fs.exists function needed by npm. v0.6.12相当老,缺少npm所需的fs.exists函数。

You can update node on Ubuntu using these commands: 您可以使用以下命令在Ubuntu上更新节点:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM