我收到以下错误ENOENT,EPERM而在Windows上安装10离子下列指示窗http://ionicframework.com/docs/v2/getting-started/installation/离子2安装失败 - ENOENT,EPERM在安装上10
NPM配置
C:\WINDOWS\system32>npm config list
; cli configs
user-agent = "npm/3.10.8 node/v6.9.1 win32 x64"
; builtin config undefined
prefix = "C:\\Users\\developer\\AppData\\Roaming\\npm"
; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\WINDOWS\system32
; HOME = C:\Users\developer
; "npm config ls -l" to show all defaults.
命令使用
PS C:\WINDOWS\system32> node -v
v6.9.1
PS C:\WINDOWS\system32> npm -v
3.10.8
PS C:\WINDOWS\system32>
安装离子每指令
PS C:\WINDOWS\system32> npm install -g ionic 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]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
`-- [email protected]
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\developer\\AppData
\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic" "cord
ova"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! path C:\Users\developer\AppData\Roaming\npm\node_modules\.staging\abbrev-
2a0e0d71
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\developer\AppD
ata\Roaming\npm\node_modules\.staging\abbrev-2a0e0d71' -> 'C:\Users\developer\AppD
ata\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\developer\AppD
ata\Roaming\npm\node_modules\.staging\abbrev-2a0e0d71' -> 'C:\Users\developer\AppD
ata\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:\WINDOWS\system32\npm-debug.log
PS C:\WINDOWS\system32>
什么是去了解这个正确的方式?
在Ubuntu 12.04 here
更新类似的问题: - 我试图运行此作为管理员,但最终的结果是略有不同的错误信息是相同的。
C:\WINDOWS\system32> npm install -g ionic cordova
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
| `-- [email protected]
+-- [email protected]
`-- [email protected]
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic" "cordova"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! path C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js' -> 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\cordova-js'
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:64:7
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:35
npm ERR! at Array.forEach (native)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:11
npm ERR! at Array.forEach (native)
npm ERR! at asyncMap (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:51:8)
npm ERR! at moveModules (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:61:5)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:56:70
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\mkdirp\index.js:48:26
npm ERR! at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js' -> 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\cordova-js'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, rename 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js' -> 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\cordova-js'
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:64:7
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:35
npm ERR! at Array.forEach (native)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:11
npm ERR! at Array.forEach (native)
npm ERR! at asyncMap (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:51:8)
npm ERR! at moveModules (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:61:5)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:56:70
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\mkdirp\index.js:48:26
npm ERR! at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js' -> 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\cordova-js'
npm ERR! at Error (native) parent: 'ionic-app-lib' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\WINDOWS\system32\npm-debug.log
C:\WINDOWS\system32>
已经尝试'重命名“C的最终结果:\ Users \用户显影剂\ APPD ATA \漫游\ NPM \ node_modules \ .staging \缩写-2a0e0d71' - >“C:\ Users \用户显影剂\ APPD ATA \漫游\ NPM \ node_modules \科尔多瓦\ node_modules \ NPM \ node_modules \ abbrev''? – Ivaro18
@ Ivaro18 - 我没有看到C:\ Users \ developer \ AppD ata \ Roaming \ npm \ node_modules \ – user3206440
中的源文件夹,然后安装cordova,'npm install -g cordova' – Ivaro18