我需要安装cordova。我的节点版本是0.11.14。我使用这个版本,因为我使用KOA
。但是当我运行npm install -g cordova
时,我得到了这个erorr:
PS F:\try\myApp1> npm install -g cordova
npm WARN engine cordova-js@3.6.4: wanted: {"node":"~0.10.x"} (current: {"node":"0.11.14-nightly- 20140819-pre","npm":"1.4
.21"})
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.11.14-nightly-20140819-pre","n
pm":"1.4.21"})
C:\Users\mohammad\AppData\Roaming\npm\cordova -> C:\Users\mohammad\AppData\Roaming\npm\node_modules\cordova\bin\cordova
cordova@3.6.3-0.2.13 C:\Users\mohammad\AppData\Roaming\npm\node_modules\cordova
├── q@0.9.7
├── underscore@1.4.4
├── nopt@2.2.1 (abbrev@1.0.5)
└── cordova-lib@0.21.13 (osenv@0.0.3, properties-parser@0.2.3, bplist-parser@0.0.5, mime@1.2.11, unorm@1.3.3, semver@2.0
.11, shelljs@0.1.4, npmconf@0.1.16, rc@0.3.0, dep-graph@1.1.0, xcode@0.6.7, glob@3.2.11, elementtree@0.1.5, tar@0.1.20,
request@2.22.0, npm@1.3.4, plist@1.0.1, cordova-js@3.6.4)
因此它说cordova需要0.10但我需要0.11.14才能完成一些工作。如何解决这个问题。