PhoneGap中文网

标题: ionic创建项目问题 [打印本页]

作者: jansle    时间: 2015-8-18 11:46
标题: ionic创建项目问题
1.
2.


请问下是Node的版本低了吗?
这个问题怎么解决呢。

麻烦回答下,谢谢!!!


作者: paultao    时间: 2015-8-18 12:01
1) Clear NPM's cache:  
sudo npm cache clean -f  
2) Install a little helper called 'n'  
  
sudo npm install -g n
作者: jansle    时间: 2015-8-18 13:11
paultao 发表于 2015-8-18 12:01
1) Clear NPM's cache:  
sudo npm cache clean -f  
2) Install a little helper called 'n'  

1)npm WARN using --force I sure hope you know what you are doing.
2)npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: n@2.0
.2
npm ERR! notsup Valid OS:    !win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
npm ERR! cwd C:\Users\Administrator
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code EBADPLATFORM
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Administrator\npm-debug.log
npm ERR! not ok code 0

还是报错呢..




欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/) Powered by Discuz! X3.2