npm cordova安装在Windows 10上

时间:2017-08-08 05:43:59

标签: node.js cordova windows-phone-8 windows-10

我无法使用命令npm install -g cordova在Windows 10上安装Cordova,因为在npm-debug.log中获得了以下错误:

24743 verbose stack Error: ENOENT: no such file or directory, rename 'C:\Users\xxx\AppData\Roaming\npm\node_modules\.staging\abbrev-7bb988b9' -> 'C:\Users\xxx\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
24743 verbose stack     at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:25:7)
24743 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
24743 verbose stack     at FSReqWrap.oncomplete (fs.js:123:15)
24743 verbose stack
24743 verbose stack Error: ENOENT: no such file or directory, rename 'C:\Users\xxx\AppData\Roaming\npm\node_modules\.staging\abbrev-7bb988b9' -> 'C:\Users\xxx\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
24743 verbose stack     at Error (native)
24744 verbose cwd C:\WINDOWS\system32
24745 error Windows_NT 10.0.15063
24746 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
24747 error node v6.11.2
24748 error npm  v3.10.10
24749 error path C:\Users\xxx\AppData\Roaming\npm\node_modules\.staging\abbrev-7bb988b9
24750 error code ENOENT
24751 error errno -4058
24752 error syscall rename
24753 error enoent ENOENT: no such file or directory, rename 'C:\Users\xxx\AppData\Roaming\npm\node_modules\.staging\abbrev-7bb988b9' -> 'C:\Users\xxx\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
24754 error enoent ENOENT: no such file or directory, rename 'C:\Users\xxx\AppData\Roaming\npm\node_modules\.staging\abbrev-7bb988b9' -> 'C:\Users\xxx\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
24754 error enoent This is most likely not a problem with npm itself
24754 error enoent and is related to npm not being able to find a file.

0 个答案:

没有答案