C:\Windows\system32>npm install -g cordova
<!--'npm WARN engine cordova-js@4.0.0: wanted {"node":"~0.10.x"}
(current: {"node":" 0.12.7","npm":"2.11.3"})'
'npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"}
(current: {"node": "0.12.7","npm":"2.11.3"})'
'npm WARN engine xmlbuilder@2.2.1: 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
npm@1.3.4 but bundled package wasn't found in unpacked tree-->
答案 0 :(得分:0)
您安装的NodeJS似乎对于xmlbuilder来说太新了。您可以尝试使用类似
的内容将其降级到0.10.x系列npm uninstall n
npm install n@0.10.32
然后运行原始命令。