本文介绍了无法使用 node js 安装cordova的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C:\Users\admin>npm install -g cordova

C:\Users\admin>npm install -g cordova

npm WARN 引擎 [email protected]:想要:{"node":">=0.6","npm":"1"}(当前:{"node":"0.10.33","npm":"2.1.12"})
C:\Program Files\nodejs\cordova -> C:\Program Files\nodejs\node_modules\cordova\本\科尔多瓦npm WARN 未满足的依赖项 C:\Program Files\nodejs\node_modules\npm\node_modules\npm-package-arg 需要 semver@'4' 但会加载npm WARN 未满足的依赖项 C:\Program Files\nodejs\node_modules\npm\node_modules\断断续续,npm WARN 未满足的依赖项,版本 2.3.0
npm WARN 未满足的依赖项 C:\Program Files\nodejs\node_modules\npm\node_modules\
read-installed\node_modules\readdir-scoped-modules 需要优雅-fs@'^3.0.4'但会加载
npm WARN 未满足的依赖项 C:\Program Files\nodejs\node_modules\npm\node_modules\优雅-fs,
npm WARN 未满足的依赖项,版本 3.0.2
[email protected] C:\Program Files\nodejs\node_modules\cordova
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└──[email protected] ([email protected], [email protected], [email protected]
, [email protected], [email protected], [email protected], [email protected], [email protected], rc@0.
5.2, [email protected], [email protected], [email protected], [email protected], [email protected], glob@4
.0.6、[email protected][email protected][email protected][email protected])

npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.10.33","npm":"2.1.12"})
C:\Program Files\nodejs\cordova -> C:\Program Files\nodejs\node_modules\cordova\bin\cordovanpm WARN unmet dependency C:\Program Files\nodejs\node_modules\npm\node_modules\npm-package-arg requires semver@'4' but will loadnpm WARN unmet dependency C:\Program Files\nodejs\node_modules\npm\node_modules\semver,npm WARN unmet dependency which is version 2.3.0
npm WARN unmet dependency C:\Program Files\nodejs\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 C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs,
npm WARN unmet dependency which is version 3.0.2
[email protected] C:\Program Files\nodejs\node_modules\cordova
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected]
, [email protected], [email protected], [email protected], [email protected], [email protected], rc@0.
5.2, [email protected], [email protected], [email protected], [email protected], [email protected], glob@4
.0.6, [email protected], [email protected], [email protected], [email protected])

推荐答案

尝试安装graceful-fs:

try to install graceful-fs:

npm install -g graceful-fs

这篇关于无法使用 node js 安装cordova的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 02:55