mac怎么安装cordova?
cordova
需要nodejs
版本为0.10.x
,我去官网下载并安装了0.10.38
版本,但是还是无法安装成功cordova
,但是linuxmint
轻松安装成功。。。
报错信息:
/usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npm-package-arg requires semver@'4' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/semver,
npm WARN unmet dependency which is version 2.3.0
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/rimraf/node_modules/glob requires inflight@'^1.0.4' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/inflight,
npm WARN unmet dependency which is version 1.0.1
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/rimraf/node_modules/glob requires minimatch@'^2.0.1' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/minimatch,
npm WARN unmet dependency which is version 1.0.0
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/node-gyp/node_modules/glob requires inflight@'^1.0.4' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/inflight,
npm WARN unmet dependency which is version 1.0.1
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-installed/node_modules/readdir-scoped-modules requires graceful-fs@'^3.0.4' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/graceful-fs,
npm WARN unmet dependency which is version 3.0.2
cordova@5.1.1 /usr/local/lib/node_modules/cordova
├── underscore@1.7.0
├── q@1.0.1
├── nopt@3.0.1 (abbrev@1.0.7)
└── cordova-lib@5.1.1 (valid-identifier@0.0.1, osenv@0.1.0, properties-parser@0.2.3, bplist-parser@0.0.6, mime@1.2.11, unorm@1.3.3, semver@2.1.0, shelljs@0.3.0, dep-graph@1.1.0, rc@0.5.2, xcode@0.6.7, elementtree@0.1.6, cordova-app-hello-world@3.9.0, npm@1.3.4, npmconf@0.1.16, d8@0.4.4, through2@0.6.3, request@2.47.0, glob@4.0.6, cordova-registry-mapper@1.1.6, init-package-json@1.6.0, tar@1.0.2, plist@1.1.0, cordova-js@4.0.0)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看下有没有安装成功
你选择一个稳定版的安装试试呢,也可以去http://www.ifcoder.us/找找答案