I've upgraded NPM from 5.3.0 to 5.4.1 and after that, it seems that the command npm install works only if I've removed node_modules. When I try to rerun the installation, I'm getting the following error message. (After that, if I again remove node_modules, the command run install works - once.)
PS C:\source\website> npm install
npm ERR! path C:\source\website\node_modules\fsevents\node_modules\aproba\package.jsonvet.Web
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\source\website\node_modules\fsevents\node_modules\aproba\package.json'
npm ERR! {
Error: EPERM: operation not permitted, unlink 'C:\source\website\node_modules\fsevents\node_modules\aproba\package.json'
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink \'C:\source\website\node_modules\fsevents\node_modules\aproba\package.json\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
'C:\source\website\node_modules\fsevents\node_modules\aproba\package.json' } npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\butt\AppData\Roaming\npm-cache_logs\2017-09-13T16_42_26_030Z-debug.log
PS C:\source\website>
Nothing else has changed in my setup, as far I'm aware. My environment is Windows 10 and Node 8.2.1. The behavior seems to be consistent on several computers.
I notice that during the re-runs of the installation, there's a lot of waiting time, like if the installer gets stuck, on the following stage of it.
added 995 packages in 29.671s
PS C:\source\website> npm install
[ ......] - postinstall: sill doSerial postinstall 686
I have no clue on how to proceed with this. Is fsevents to blame at all? I recall that it produced warnings but still transpiling fine in earlier versions.
There's a related question on this theme but precisely covering my issue. I can't decide if it's just different working of the same problem or if it's two separate troubles.