Error: EPERM: operation not permitted, read
See original GitHub issueafter ‘npm run dev’ i have this error:
i tested on fresh laravel and nothing changes,thank’s for your help.
ERROR in ./node_modules/axios/lib/helpers/cookies.js
Module build failed: Error: EPERM: operation not permitted, read
@ ./node_modules/axios/lib/adapters/xhr.js 88:20-51
@ ./node_modules/axios/lib/defaults.js
@ ./node_modules/axios/lib/axios.js
@ ./node_modules/axios/index.js
@ ./resources/js/bootstrap.js
@ ./resources/js/app.js
@ multi ./resources/js/app.js ./resources/sass/app.scss
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Pudge\AppData\Roaming\npm-cache_logs\2020-08-11T20_43_32_248Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: npm run development
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Pudge\AppData\Roaming\npm-cache_logs\2020-08-11T20_43_32_348Z-debug.log
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
I tried everything npm cache clean --force rm node_modules npm install turn of windows defender But it did not work Finally I reset my Windows and it was fixed.
Looks like you don’t have the proper permissions set in the node_modules directory.