我正在使用Windows 7并在执行时出错
npm install -g cordova
命令,然后显示以下错误>>
npm ERR! error rolling back Error: EBUSY, unlink 'C:\nodejs\cordova'
npm ERR! error rolling back cordova@3.2.0-0.1.0 { [Error: EBUSY, unlink 'C:\nod
ejs\cordova'] errno: 10, code: 'EBUSY', path: 'C:\\nodejs\\cordova' }
npm ERR! Error: EISDIR, open 'C:\nodejs\cordova'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\nodejs\\\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "install" "-g" "cordova"
npm ERR! cwd C:\nodejs\cordova
npm ERR! node -v v0.10.16
npm ERR! npm -v 1.3.8
npm ERR! path C:\nodejs\cordova
npm ERR! code EISDIR
npm ERR! errno 28
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\nodejs\cordova\npm-debug.log
npm ERR! not ok code 0
关于这类问题的任何想法??
答案 0 :(得分:2)
很抱歉回答我自己的问题 我解决了你需要运行“npm install -g cordova”命令的问题,你从哪里安装nodeJS不是从任何子文件夹假设我在“MyNode”文件夹中安装了nodeJS然后我将从c运行“npm install -g cordova”命令:\ MyNode&gt; npm install -g cordova