Closed
Description
Version: v10.0.0-nightly201804175eb9f3c91c
Platform: Windows 10 64-bit and 32-bit
Subsystem: npm
Both node and npm are installed in default location, and on the path.
This works as expected in Node 9, which is why I filed an issue here.
Any npm command results in the following error on several machines:
fs.js:111
throw err;
^
Error: EPERM: operation not permitted, open 'C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js'
at Object.fs.openSync (fs.js:545:3)
at Object.fs.readFileSync (fs.js:451:33)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:688:20)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:719:10)
at startup (internal/bootstrap/node.js:229:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:576:3)
fs.js:111
throw err;
^
Error: EPERM: operation not permitted, open 'C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js'
at Object.fs.openSync (fs.js:545:3)
at Object.fs.readFileSync (fs.js:451:33)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:688:20)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:719:10)
at startup (internal/bootstrap/node.js:229:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:576:3)