Tuesday, 15 May 2012

windows - Certain NPM installs fail with EPERM 50 (Gulp and others) -



windows - Certain NPM installs fail with EPERM 50 (Gulp and others) -

i go on permissions errors on windows 7 when trying npm install modules. global install of gulp illustration results in this:

c:\users\abc\documents\uniform\uniserver\www\ur>npm install -g gulp / > v8flags@1.0.1 install c:\users\abc\appdata\roaming\npm\node_modules\gulp\node_modules\v8flags > node fetch.js flags v8 3.14.5.9 cached. npm err! error: eperm, open 'c:\users\abc\documents\uniform\uniserver\www\npmcache\c14291c8-che- ansi-regex-0-2-1-package-tgz.lock' npm err! { [error: eperm, open 'c:\users\abc\documents\uniform\uniserver\www\npmcache\c14291c8- che-ansi-regex-0-2-1-package-tgz.lock'] npm err! errno: 50, npm err! code: 'eperm', npm err! path: 'c:\\users\\abc\\documents\\uniform\\uniserver\\www\\npmcache\\c14291c8-che-ans i-regex-0-2-1-package-tgz.lock' } npm err! npm err! please seek running command 1 time again root/administrator. npm err! scheme windows_nt 6.1.7601 npm err! command "c:\\program files\\nodejs\\\\node.exe" "c:\\program files\\nodejs\\node_modules\\n pm\\bin\\npm-cli.js" "install" "-g" "gulp" npm err! cwd c:\users\abc\documents\uniform\uniserver\www\ur npm err! node -v v0.10.32 npm err! npm -v 1.4.28 npm err! path c:\users\abc\documents\uniform\uniserver\www\npmcache\c14291c8-che-ansi-regex-0-2- 1-package-tgz.lock npm err! code eperm npm err! errno 50 npm err! stack error: eperm, open 'c:\users\abc\documents\uniform\uniserver\www\npmcache\c14291c 8-che-ansi-regex-0-2-1-package-tgz.lock' npm err! not ok code 0

i error while running cmd administrator. i've read in other posts may represent missing program. git installed , works it's not that. bower installed , works. i've tried adding c:\windows\system32 scheme path. no help. may able tell, modified location of npm cache thinking perhaps folder in default had sort of permissions issue. no help there either. i've tried adding --no-bin-links option, doesn't help. i'm @ loss causing problem. have same issue trying install slush-mongo, either globally or locally.

i had same problem , found these command-line flags seem prepare without having disable av:

npm install --cache-lock-retries 1000 --cache-lock-wait 100000

you can alter default values (so don't need add together command-line options every time) running:

npm config set cache-lock-retries 1000 npm config set cache-lock-wait 100000

windows node.js npm

No comments:

Post a Comment