2016-08-25 127 views
0

我想在我的开发机器上安装最新的cordova稳定版本。在windows上安装cordova的错误10

但是安装失败,并在需要更新的minimatch上发出警告。所以我更新到npm v3,它安装了3.10.6。现在我得到了一个不同的错误,但仍然是关于minimatch的警告。谁能告诉我我做错了什么? npm v3是最新的稳定版本,还是我设法安装了beta版本?

我试过两个新公共管理和科尔多瓦干净的命令,我运行控制台管理员

$ npm install -g cordova 
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue 
C:\Users\Acuity\AppData\Roaming\npm 
`-- (empty) 

npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Acuity\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova" 
npm ERR! node v4.5.0 
npm ERR! npm v3.10.6 
npm ERR! path C:\Users\Acuity\AppData\Roaming\npm\node_modules\.staging\abbrev-a6a00b47 
npm ERR! code ENOENT 
npm ERR! errno -4058 
npm ERR! syscall rename 

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Acuity\AppData\Roaming\npm\node_modules\.staging\abbrev-a6a00b47' -> 'C:\Users\Acuity\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev' 
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Acuity\AppData\Roaming\npm\node_modules\.staging\abbrev-a6a00b47' -> 'C:\Users\Acuity\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Users\Acuity\npm-debug.log 
npm ERR! code 1 

回答

0

我卸载所有节点模块和和的NodeJS开始一个空白的环境,现在的作品