[rush] pnpm: EBUSY: resource busy or locked when running rush install
Summary
I encountered an issue when running rush install on Windows. The installation fails with the following error message:
pnpm: EBUSY: resource busy or locked
Repro steps
- Navigate to the root of the Rush monorepo.
- Run the command:
rush install
Expected result: Dependencies should be installed successfully without encountering a resource lock error.
Actual result: The installation fails with an EBUSY error, indicating that some files or directories are locked by another process.
Details
This issue occurs repeatedly even after clearing npm and pnpm caches.
Restarting the terminal and system didn’t resolve the issue.
Additionally, I have:
- Cleared temporary files on my PC.
- Run the command in Administrator mode.
Standard questions
| Question | Answer |
|---|---|
@microsoft/rush globally installed version? |
5.109.2 |
rushVersion from rush.json? |
5.109.2 |
useWorkspaces from rush.json? |
false |
| Operating system? | Windows |
| Would you consider contributing a PR? | No |
Node.js version (node -v)? |
18.20.4 |
Can you share a log? Is this Rush or PNPM throwing the error?
Is Windows Defender or another virus scanner locking a subfolder of the store or the common/temp/node_modules folder?
@iclanton Here is the log.
BUSY EBUSY: resource busy or locked, copyfile '