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
Description:
On Windows, it appears that the npm prefix C:\npm\prefix is on the PATH instead of the bin folder within the npm prefix, C:\npm\prefix\bin. This causes global packages to be unavailable when installed via npm install --global.
Action version:
3.1.1
Platform:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Tools version:
Node 14, 16, and 18, included version of npm
Repro steps:
Use actions/setup-node with any Node version
Install a command line package with --global, like shx: npm install shx --global
Hello @ospencer. Thank you for your report. I've tried to reproduce the issue using the npm install shx -g command but it works as expected through npm. It looks like in your case you're using yarn to install global packages, that is why the output from the yarn global bin command should be added to the PATH.
Description:
On Windows, it appears that the npm prefix
C:\npm\prefix
is on the PATH instead of the bin folder within the npm prefix,C:\npm\prefix\bin
. This causes global packages to be unavailable when installed vianpm install --global
.Action version:
3.1.1
Platform:
Runner type:
Tools version:
Node 14, 16, and 18, included version of npm
Repro steps:
--global
, likeshx
:npm install shx --global
I added a step to this CI run to print out all of the paths on the PATH, and you see
C:\npm\prefix
instead ofC:\npm\prefix\bin
(it's the fourth step):https://github.com/grain-lang/grain/runs/6200569895
Expected behavior:
The command should be available and
$(npm config get prefix)\bin
should be on the PATH.Actual behavior:
The command is not found.
The text was updated successfully, but these errors were encountered: