node.js - Error when installing ionic with npm install -g ionic cordova on windows 10 -


i'm trying install ionic , returned error:

95376 warn optional skipping optional dependency: fsevents@1.0.15 (node_modules\ionic\node_modules\ionic-app-lib\node_modules\glob-watcher\node_modules\chokidar\node_modules\fsevents): 95377 warn notsup skipping optional dependency: unsupported platform fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) 95378 verbose notsup skipping optional dependency: valid os:    darwin 95378 verbose notsup skipping optional dependency: valid arch:  95378 verbose notsup skipping optional dependency: actual os:   win32 95378 verbose notsup skipping optional dependency: actual arch: x64 95379 verbose stack error: enoent: no such file or directory, rename 'c:\users\<username>\appdata\roaming\npm\node_modules\.staging\abbrev-afcbf2ea' -> 'c:\users\<username>\appdata\roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev' 95379 verbose stack     @ deststatted (c:\users\<username>\appdata\roaming\npm\node_modules\npm\lib\install\action\finalize.js:25:7) 95379 verbose stack     @ c:\users\<username>\appdata\roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29 95379 verbose stack     @ fsreqwrap.oncomplete (fs.js:123:15) 95379 verbose stack 95379 verbose stack error: enoent: no such file or directory, rename 'c:\users\<username>\appdata\roaming\npm\node_modules\.staging\abbrev-afcbf2ea' -> 'c:\users\<username>\appdata\roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev' 95379 verbose stack     @ error (native) 95380 verbose cwd c:\users\<username>\documents\sc-ionic 95381 error windows_nt 10.0.14393 95382 error argv "c:\\program files\\nodejs\\node.exe" "c:\\users\\<username>\\appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic" "cordova" 95383 error node v6.9.1 95384 error npm  v3.10.9 95385 error path c:\users\<username>\appdata\roaming\npm\node_modules\.staging\abbrev-afcbf2ea 95386 error code enoent 95387 error errno -4058 95388 error syscall rename 95389 error enoent enoent: no such file or directory, rename 'c:\users\<username>\appdata\roaming\npm\node_modules\.staging\abbrev-afcbf2ea' -> 'c:\users\<username>\appdata\roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev' 95390 error enoent enoent: no such file or directory, rename 'c:\users\<username>\appdata\roaming\npm\node_modules\.staging\abbrev-afcbf2ea' -> 'c:\users\<username>\appdata\roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev' 95390 error enoent not problem npm 95390 error enoent , related npm not being able find file. 95391 verbose exit [ -4058, true ] 

it trying rename not existing directory "abbrev-afcbf2ea" in npm module.

i've solved removing node_modules folder , run:

npm install -g --save ionic cordova 

i think cache issue when wents wrong in dependency installation of ionic + cordova crashes node_modules path!


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -