Open
Description
Summary
Calling rush install
sometimes causing this error:
ERROR: ENOENT: no such file or directory, open
'.../common/temp/<some_project>/node_modules/.modules.yaml'
where <some_project>
is depended on via workspace:
specifier by current project.
Repro steps
Not able to reproduce in a minimal repo, I can try again latter. But this happens most frequently when:
- The project is newly created (with the rush repo already created).
- The project has no dependency (in this case, adding a dummy dependency can solve this issue).
Details
- Creating
.../common/temp/.../node_modules/
directory bymkdir -p
beforerush install
solves the issue. - Running
rush install
twice also solves the issue. - The issue happened only several times, but each time it happens, retry
rush install
can always reproduce, both locally and on CI environment.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question | Answer |
---|---|
@microsoft/rush globally installed version? |
5.149.0 |
rushVersion from rush.json? |
5.149.0 |
useWorkspaces from rush.json? |
no such field in rush.json , it's true in pnpm-config.json |
Operating system? | Mac |
Would you consider contributing a PR? | Yes |
Node.js version (node -v )? |
18.12.1 |
PNPM version from rush.json |
8.8.0 |
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Needs triage