安装最新版cordova遇到的问题

安装最新版cordova遇到的问题

报错内容

➜  ~  sudo npm install -g cordova
Password:
npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.2","npm":"2.7.5"})
npm WARN engine cordova-js@3.8.0: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.2","npm":"2.7.5"})
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.2","npm":"2.7.5"})
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree

解决方法

下载node v0.10.xx
http://blog.nodejs.org/release/2
即可安装成功

你可能感兴趣的:(语法等)