You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the nodeLinker setting set to pnpm, the .bin folder in node_modules is not created after installing dependencies, unlike when using other configurations.
To reproduce
Using nodeLinker with pnpm
yarn init -2
yarn set version 4
yarn config set nodeLinker pnpm
yarn add eslint
results in the .bin folder not being created.
Using nodeLinker with node-modules
yarn init -2
yarn set version 4
yarn config set nodeLinker node-modules
yarn add eslint
results in the .bin/eslint folder being created
Using pnpm Directly
pnpm init
pnpm install eslint
also results in the .bin/eslint folder being created
I'm seeing this issue as well (w/ [email protected]). This breaks our ability to use tsc, eslint, and prettier on the command-line (among others). Edit: Okay, it doesn't really break our ability to run CLIs, but it does seem to require that we use yarn run to invoke them — E.g. yarn run tsc — which is less than ideal given this issue. 😞
FWIW, I reached out to the yarn support channel on Discord to see if there was a specific reason for this omission. @arcanis responded, "It hasn't been a problem enough to prompt someone to open a PR".
Thank you for the update. We have migrated to pnpm in our architecture, so this issue no longer affects us. If anyone is interested in submitting a pull request to fix this bug, please feel free to do so.
I also have this problem, and even with yarn run it doesn't work. We are trying to migrate Yarn v1 (Classic) to v4 (Berry), but PnP does not work with Nuxt and the pnpm nodeLinker does not create the .bin folder so everything fails after yarn install. We are left with node-modules nodeLinker or migrating to pnpm.
Self-service
Describe the bug
When using the nodeLinker setting set to pnpm, the .bin folder in node_modules is not created after installing dependencies, unlike when using other configurations.
To reproduce
Using nodeLinker with pnpm
results in the .bin folder not being created.
![Screenshot 2024-03-17 at 17 28 27](https://private-user-images.githubusercontent.com/7814819/313480208-a2292291-b803-4444-af15-5fff6ed9b592.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzgwODQsIm5iZiI6MTczOTY3Nzc4NCwicGF0aCI6Ii83ODE0ODE5LzMxMzQ4MDIwOC1hMjI5MjI5MS1iODAzLTQ0NDQtYWYxNS01ZmZmNmVkOWI1OTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDM0OTQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGFmYjU0MDZhODExZTMyYzA1MDYwNzM4OGY4Njg3MmRmNDBjOWNjYzljZjRmYThkMDMxNDYxZWFmMDFlMzdhYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ez822Yq09yVw1FicwaG66SK1mi4jVub7aKf0jpjCv9I)
Using nodeLinker with node-modules
results in the .bin/eslint folder being created
![Screenshot 2024-03-17 at 17 30 23](https://private-user-images.githubusercontent.com/7814819/313480291-689dbd35-3e15-481b-8f00-fb8b8a1e3787.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzgwODQsIm5iZiI6MTczOTY3Nzc4NCwicGF0aCI6Ii83ODE0ODE5LzMxMzQ4MDI5MS02ODlkYmQzNS0zZTE1LTQ4MWItOGYwMC1mYjhiOGExZTM3ODcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDM0OTQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGY1M2JlMDcyNjA3NGU3YjEwZTNjODVhODMxZjg2Y2ZkYzdhMzI2ZjkzZWE3NGY0YTE2ZWY3MTgwZTI4NDcxNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.1I8qbGO46z9hRWLJhV0ITYl_7eJq7Is0vftFLhjUap0)
Using pnpm Directly
also results in the .bin/eslint folder being created
![Screenshot 2024-03-17 at 17 32 22](https://private-user-images.githubusercontent.com/7814819/313480412-e293f470-5144-4abb-9a5a-e5af12584088.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzgwODQsIm5iZiI6MTczOTY3Nzc4NCwicGF0aCI6Ii83ODE0ODE5LzMxMzQ4MDQxMi1lMjkzZjQ3MC01MTQ0LTRhYmItOWE1YS1lNWFmMTI1ODQwODgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDM0OTQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGRlYWVmMDZiMWQ4ZTk4Mzc0MmNlMWI4NzBkNzM4YmVjMzA1M2ZlY2RjMjg5YTBhNzJiMmI5ZjdjZGE0M2FmNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.mECyC0udDUvIlXgyANZbJPDTG5HhsVOwu4vroYCjsts)
Environment
Additional context
This behavior is confusing, as some libraries, such as appcenter, rely on executing binaries from the node_modules/.bin/ directory.
The text was updated successfully, but these errors were encountered: