[BUG] npm ERR! Error: EPERM: operation not permitted only on windows
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.1k
- Forks
- 4.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 19
Description
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
- In this environment : Windows
- With this config...
- Run : run npm install
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing npm install on Windows with npm 10.8.2 and Node.js 20.18.0, then compare it with the working Mac environment. The issue does not name a file or test, and completion would require identifying the cause of the Windows EPERM error and making installation work on Windows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100