create react app - npm ERR! Error: EPERM: operation not permitted -


running windows powershell administrator, have tried of below. nothing works. not that, takes 20 minutes error.

  • upgrading node
  • upgradeing npm
  • turning off antivirus
  • cleaning mpm cache
  • verifying npm cache

here output trying create project:

ps d:\documents\js> create-react-app socket-io-client  creating new react app in d:\documents\js\socket-io-client.  installing packages. might take couple of minutes. installing react, react-dom, , react-scripts...   > uglifyjs-webpack-plugin@0.4.6 postinstall d:\documents\js\socket-io-client\node_modules\uglifyjs-webpack-plugin > node lib/post_install.js  npm err! path d:\documents\js\socket-io-client\node_modules\fsevents\node_modules npm err! code eperm npm err! errno -4048 npm err! syscall rmdir npm err! error: eperm: operation not permitted, rmdir 'd:\documents\js\socket-io-client\node_modules\fsevents\node_modules' npm err!  { error: eperm: operation not permitted, rmdir 'd:\documents\js\socket-io-client\node_modules\fsevents\node_modules' npm err!   stack: 'error: eperm: operation not permitted, rmdir \'d:\\documents\\js\\socket-io-client\\node_modules\\fsevents\\node_modules\'', npm err!   errno: -4048, npm err!   code: 'eperm', npm err!   syscall: 'rmdir', npm err!   path: 'd:\\documents\\js\\socket-io-client\\node_modules\\fsevents\\node_modules' } npm err! npm err! please try running command again root/administrator.  npm err! complete log of run can found in: npm err!     c:\users\idf\appdata\roaming\npm-cache\_logs\2017-08-15t04_50_32_705z-debug.log  aborting installation.   npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.  deleting generated file... package.json deleting generated file... node_modules 

i know have resolved issue. in case else got same error message, ended working me deleting these folders.

c:\users\[username]\appdata\roaming\npm c:\users\[username]\appdata\roaming\npm-cache 

if problem still persists, try 1 of fixes thread: https://github.com/npm/npm/issues/10826.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -