NodeJS npm install Installation error

Posted 1 year ago by Rainieren

Hello, I'm using PHPStorm for my project and every time I start a new Laravel project it automatically asks me to do npm install. But If I do that I get this error. I'm sorry if it is a bit too long

npm ERR! path C:\xampp\htdocs\laravel\ICT-Hulp\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 'C:\xampp\htdocs\laravel\ICT-Hulp\node_modules\fsevents\node_modules'
npm ERR!  { Error: EPERM: operation not permitted, rmdir 'C:\xampp\htdocs\laravel\ICT-Hulp\node_modules\fsevents\node_modules'
npm ERR!   stack: 'Error: EPERM: operation not permitted, rmdir \'C:\xampp\htdocs\laravel\ICT-Hulp\node_modules\fsevents\node_modules\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'rmdir',
npm ERR!   path: 'C:\xampp\htdocs\laravel\ICT-Hulp\node_modules\fsevents\node_modules' }
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\LENOVO\AppData\Roaming\npm-cache\_logs17-11-03T18_24_06_826Z-debug.log

Does anyone know what is causing this? And how can I solve it?

Please sign in or create an account to participate in this conversation.