node.js - Can't run "npm install" without deleting node_modules after upgrading to NPM 5.4.1 -


i've upgraded npm 5.3.0 5.4.1 , after that, seems command npm install works if i've removed node_modules. when try rerun installation, i'm getting following error message. (after that, if again remove node_modules, 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 command again root/administrator.
npm err! complete log of run can 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 setup, far i'm aware. environment windows 10 , node 8.2.1. behavior seems consistent on several computers.

i notice during re-runs of installation, there's lot of waiting time, if installer gets stuck, on 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 proceed this. fsevents blame @ all? recall produced warnings still transpiling fine in earlier versions.

there's related question on theme precisely covering issue. can't decide if it's different working of same problem or if it's 2 separate troubles.

this common issue many found npm 5.4 , option @ point downgrade npm 5.3

npm -g npm@5.3.0 

for more updates follow thread.

https://github.com/npm/npm/issues/18380

p.s : can try using npm cache clean --force after downgrade , try installing 5.4 again npm -g npm@5.4.1 or npm install --no-optional if need npm 5.4 work done.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -