[Bug?]: Yarn doesn't make dependency executables available on PATH for yarn run
#6485
Labels
bug
Something isn't working
yarn run
#6485
Self-service
Describe the bug
As I understand it (confirmed on the Yarn discord),
yarn run
should update thePATH
environment to provide access to dependency URLs.To reproduce
Debugging further, this is because it's trying to run
execa('eslint', ...)
buteslint
isn't available on its PATH. Note thatgts
has a full, non-dev dependency oneslint
, which declaresin its
package.json
.Environment
System: OS: Linux 6.7 Debian GNU/Linux rodete CPU: (8) x64 Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz Binaries: Node: 22.2.0 - /tmp/xfs-bd8d55d4/node Yarn: 4.4.1 - /tmp/xfs-bd8d55d4/yarn npm: 10.7.0 - ~/.nvm/versions/node/v22.2.0/bin/npm
Additional context
To debug, I ran
yarn config nodeLinker node-modules
,yarn install
, and then editednode_modules/gts/build/src/cli.js
to inspect the environment. One new entry was added to by defaultPATH
,/tmp/xfs-...
. I printed the contents of this directory during the executable invocation, and it contained only:Note the absence of
eslint
.The text was updated successfully, but these errors were encountered: