I keep getting permission errors in Windows 7 when I try to install some modules on npm. For example, a global gulp installation results in the following:
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 for v8 3.14.5.9 cached. npm ERR! Error: EPERM, open 'C: \ Users \ abc \ Documents \ uniform \ UniServer \ www \ npmcache \ c14291c8-cheansan-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 try running this command again as root / Administrator. npm ERR! System 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 get this error when cmd starts as administrator. I read in other posts that this could mean a missing program. git installed and working, so it is not. bower installed and working. I tried adding c:\windows\system32 to the PATH system. There is no help. As you can tell, I changed the location of my NPM cache, thinking that perhaps the folder in which it was by default had some permissions. There is no help. I tried adding the -no-bin-links option, it doesn't help. I am really at a loss as to what causes this problem. Have the same problem trying to install slush-mongo , either globally or locally.
source share