-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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] NPM stopped creating node_modules/.bin folder #7667
Comments
This is just a side effect - the step above it is failing silently (see #7672): |
Closing duplicate of #7657. |
thanks for the suggestion @milaninfy Unfortunately it is not so simple for this particular case to use another Node.js version as they are retrieved automatically based on the latest LTS snapshots:
We'd probably need to wait for the next node patch 🤷 |
Hi @mykola-mokhnach, a quick workaround for that problem would be to set the node version manually like this:
and then once the patch for Node.js comes out you can go back to using the node-lts-versions action |
Hi @mykola-mokhnach, never mind, Node.js 22.5.1 has came out and fixes that issue. nodejs/node#53902 (comment) |
Awaiting for actions/node-versions#182 because of npm/cli#7667
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
We can observe that after installing the Node.js version 22.5.0 on the Github ubuntu-latest runner no node_modules/.bin folder is being created for package installations. This renders all utils, like eslint or mocha unavailable. The same works fine with previous node versions.
See the job https://github.com/appium/appium-mac2-driver/actions/runs/10004344335/job/27652861367?pr=311 for more details.
All other jobs with lower node versions pass with exactly the same config.
Expected Behavior
The node_modules/.bin folder must be there after package installation.
Steps To Reproduce
npm install
then runnpm run lint
Environment
The text was updated successfully, but these errors were encountered: