2016-08-25 159 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開始一個空白的環境,現在的作品