如何在优胜美地(mac)上安装cordova,离子安装

时间:2015-04-14 07:45:00

标签: node.js cordova npm ionic

npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.2","npm":"2.7.4"})

npm WARN engine cordova-js@3.8.0: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})

npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})

npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree

/Users/vimukthi/.node/bin/cordova -> 

/Users/vimukthi/.node/lib/node_modules/cordova/bin/cordova

cordova@4.3.0 /Users/vimukthi/.node/lib/node_modules/cordova


├── underscore@1.7.0

├── q@1.0.1

├── nopt@3.0.1 (abbrev@1.0.5)

└── cordova-lib@4.3.0 (valid-identifier@0.0.1, osenv@0.1.0, properties-

parser@0.2.3, bplist-parser@0.0.6, mime@1.2.11, semver@2.0.11, unorm@1.3.3,

 shelljs@0.3.0, dep-graph@1.1.0, elementtree@0.1.5, xcode@0.6.7, rc@0.5.2,

 d8@0.4.4, through2@0.6.3, npmconf@0.1.16, glob@4.0.6, plist@1.1.0, 

request@2.47.0, npm@1.3.4, init-package-json@1.4.0, tar@1.0.2, cordova-

js@3.8.0)

Vimukthis-iMac:~ vimukthi$ npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} 

(current: {"node":"0.12.2","npm":"2.7.4"

-bash: syntax error near unexpected token `('e

1 个答案:

答案 0 :(得分:1)

正如this回答:

  

不要担心它只是警告而不是错误。您正在安装的软件包需要不同的最小版本的node.js.但你的node.js版本(0.12.0)也适合他们