在Windows中安装Cordova时出错
问题描述:
C:\Windows\system32>npm install -g cordova
<!--'npm WARN engine [email protected]: wanted {"node":"~0.10.x"}
(current: {"node":" 0.12.7","npm":"2.11.3"})'
'npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"}
(current: {"node": "0.12.7","npm":"2.11.3"})'
'npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"}
(current: { "node":"0.12.7","npm":"2.11.3"})'
'npm WARN installMany normalize-package-data was bundled with
[email protected] but bundled package wasn't found in unpacked tree-->
答
看来您安装的NodeJS对于xmlbuilder来说太新了。您可以尝试将它降级到0.10.x系列,如
npm uninstall n
npm install [email protected]
然后运行原始命令。