Skip to content

[rush] pnpm: EBUSY: resource busy or locked when running rush install #5164

Open
@ChathuraIshara

Description

@ChathuraIshara

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

  1. Navigate to the root of the Rush monorepo.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for Author

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions