Skip to content

[BUG] NPM stopped creating node_modules/.bin folder #7667

@mykola-mokhnach

Description

@mykola-mokhnach

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

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

  1. ubuntu-latest GH actions image
  2. https://github.com/appium/appium-mac2-driver/blob/a05fa4b38803dbf1e6b1d46567be4d9c21d3284f/.github/workflows/unit-test.yml
  3. Run npm install then run npm run lint
  4. Error in the terminal: eslint: command not found

Environment

  • npm: 10.8.2
  • Node.js: 22.5.0
  • OS Name: ubuntu-latest (24.04)
  • System Model Name: GH Actions Runner
  • npm config: -

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions