-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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?]: yarn link failing with NodeModulesLinker: "Assertion failed: Writing attempt prevented to ..." #3413
Comments
Fixed in #3183, merged, but not released yet. To try the fix use |
It's in the canary release at the moment so you can alternatively run yarn set version canary && yarn |
This still seems like an issue for me with |
@kldavis4 Please open a new issue with reproduction. If you want to troubleshoot a bit yourself, you can use |
Self-service
Describe the bug
Two projects, that are both setup as yarn workspaces separately. Looking to run
yarn link -r ../sibling-project/javascript
.Fails with:
Assertion failed: Writing attempt prevented to <snip>/sibling-project/javascript/node_modules/lodash-es which is outside project root: <snip>/main-project
To reproduce
sibling-project
package.json has a workspaces field that indicatesjavascript
is a workspace.main-project
contains many package-based workspaces, and is trying to link a non-migrated dependency in as a dependency.Environment
System:
OS: macOS 11.5.2
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 12.20.1 - /private/var/folders/rz/8pj9lzz12fqfx51ddh4x5k813x2t56/T/xfs-c9714123/node
Yarn: 3.0.1 - /private/var/folders/rz/8pj9lzz12fqfx51ddh4x5k813x2t56/T/xfs-c9714123/yarn
npm: 6.14.10 - ~/.nvm/versions/node/v12.20.1/bin/npm
Additional context
No response
The text was updated successfully, but these errors were encountered: