Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] npm ERR! Error: EPERM: operation not permitted only on windows #8072

Open
2 tasks done
testeur-990 opened this issue Jan 28, 2025 · 3 comments
Open
2 tasks done
Labels
Bug thing that needs fixing Needs Triage needs review for next steps platform:windows is Windows-specific

Comments

@testeur-990
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

Hello,

For our dependency, Dash.js 5.0, we need to use Node 20.18.0, so npm 10.8.2 was installed with this Node version. However, when we run npm install on Windows, we encounter the error: ERR! Error: EPERM: operation not permitted, while it works fine on Mac.

Could you please assist us in fixing this issue with npm 10.8.2?

Expected Behavior

npm install works fine on windows as Mac

Steps To Reproduce

  1. In this environment : Windows
  2. With this config...
  3. Run : run npm install
  4. See error : npm ERR! Error: EPERM: operation not permitted only on windows

Environment

  • npm:10.8.2
  • Node.js:20.18.0
  • OS Name:Windows
@testeur-990 testeur-990 added Bug thing that needs fixing Needs Triage needs review for next steps labels Jan 28, 2025
@milaninfy
Copy link
Contributor

@testeur-990 Based on the report It's hard to determine the cause of the issue but generally with windows if this occurs then you can try removing node_modules and reinstalling your dependency

@testeur-990
Copy link
Author

Hello @milaninfy ,
We tried what was mentioned and many other solutions we found, but we still have an issue with npm 10.8.2. I believe you can easily reproduce it by trying Node 20.18.0 with npm 10.8.2 on Windows (no issue on Mac).

For now, we have switched to Node 20.0.0, which uses npm 9.6.4, and it worked fine. We hope you can help us use npm 10.x.

Thank you

@milaninfy milaninfy added the platform:windows is Windows-specific label Feb 7, 2025
@Gerrit0
Copy link

Gerrit0 commented Feb 23, 2025

I suspect I'm seeing the same issue here -- https://github.com/TypeStrong/typedoc/actions/runs/13469139132

This job started failing randomly on Windows only after merging another branch. I tried several different versions of npm, downgrading some recently updated dependencies, but going back to 9.x doesn't seem to fix things for me... I'm tired of fighting it, and pnpm install seems to just work, so plan on going that route for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps platform:windows is Windows-specific
Projects
None yet
Development

No branches or pull requests

3 participants