[Bug]: in `v3.3.0` - `.bin` executables not found w/ `nodeLinker: node-modules`
See original GitHub issueSelf-service
- I’d be willing to implement a fix
Describe the bug
Yarn doesn’t find executables from .bin
w/ nodeLinker: node-modules
To reproduce
- Clone this repo
- Install deps
yarn
- Run
yarn bin tsx
Yarn doesn’t find tsx
, even though tsx
is at node_modules/.bin/tsx
Environment
System:
OS: macOS 13.0
CPU: (10) arm64 Apple M1 Pro
Binaries:
Node: 19.0.1 - /private/var/folders/g9/z1czk9t57xngdyn1_yhbgsxr0000gn/T/xfs-d9f8aee5/node
Yarn: 3.3.0 - /private/var/folders/g9/z1czk9t57xngdyn1_yhbgsxr0000gn/T/xfs-d9f8aee5/yarn
npm: 8.19.2 - /opt/homebrew/bin/npm
Additional context
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[Bug] Some bin scripts not working in CI environment ... - GitHub
In a workspaced environment - even if using nodeLinker: node-modules - make sure to list any and all dependencies that your scripts rely...
Read more >pnpm/pnpm - Gitter
When I use node-linker=pnp and symlink=false , react-scripts build fails with Couldn't find the package to use as resolution source thrown by pnp-webpack-plugin ......
Read more >Migration | Yarn - Package Manager
A step-by-step and in-depth migration guide from Yarn 1 (Classic) to Yarn 2 (Berry).
Read more >.npmrc | pnpm
The pnpm config command can be used to update and edit the contents of the user and global .npmrc files. The four relevant...
Read more >Yarn install command error No such file or directory: 'install'
yarn install v1.3.2 warning You are using Node "6.0.0" which is not supported and may encounter bugs or unexpected behaviour.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The documentation points to a yarn-only way that would be hard to understand for anyone looking at such DX for the first time.
For this case, probably a more rational approach is:
bun
’s success as a pkg manager, when deciding to upgrade from Yarn V1As for your use case, the documentation may give you some ideas: https://yarnpkg.com/getting-started/qa/#how-to-share-scripts-between-workspaces