question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: EPERM: operation not permitted, read

See original GitHub issue

after ‘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 image_2020-08-12_01-17-14

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
h6s8ncommented, Aug 15, 2020

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.

1reaction
robbyricecommented, Aug 12, 2020

Looks like you don’t have the proper permissions set in the node_modules directory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node fs Error: EPERM: operation not permitted, open
Uncheck readonly options for the folder (if read-only reverts, login as administrator) · Open terminal as administrator (if you are facing this issue...
Read more >
Error: EPERM: operation not permit… | Apple Developer Forums
I am installing packages for NODEJS/NPM and am receiving the following error, which, apparently, is not an error with the software, but with...
Read more >
Error: EPERM: operation not permitted, read #2461 - GitHub
after 'npm run dev' i have this error: i tested on fresh laravel and nothing changes ... Error: EPERM: operation not permitted, read...
Read more >
Fixing intermittant 'EPERM: operation not permitted' on npm ...
The solution was to move the files to a new location and change the users configuration to use the new paths.
Read more >
Installation Issue on macOS - EPERM: operation not permitted ...
Installation of JavaScript dependencies via `npm` or `yarn` fails with `EPERM: operation not permitted` if the terminal does not have permission for the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found