Skip to content
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 ci fails on Windows with Node.js 22.0.0 #7417

Closed
2 tasks done
westy92 opened this issue Apr 25, 2024 · 2 comments · Fixed by #7422
Closed
2 tasks done

[BUG] npm ci fails on Windows with Node.js 22.0.0 #7417

westy92 opened this issue Apr 25, 2024 · 2 comments · Fixed by #7422
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x

Comments

@westy92
Copy link
Contributor

westy92 commented Apr 25, 2024

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

On Windows, npm ci fails.

(Note: this works fine on Linux and macOS)

https://github.com/westy92/holiday-event-api-js/actions/runs/8827184894/job/24234452752

Run npm ci
  npm ci
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
node:internal/modules/cjs/loader:1[2](https://github.com/westy92/holiday-event-api-js/actions/runs/8827184894/job/24234452752#step:4:2)05
  throw err;
  ^

Error: Cannot find module 'C:\npm\prefix\node_modules\npm\bin\npm-cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1202:15)
    at Module._load (node:internal/modules/cjs/loader:1027:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:187:1[4](https://github.com/westy92/holiday-event-api-js/actions/runs/8827184894/job/24234452752#step:4:5))
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.0.0

Expected Behavior

npm ci succeeds

Steps To Reproduce

  1. on GitHub hosted runners
  2. running windows
  3. running Node 22.0.0
  4. run npm ci

Environment

  • npm: 10
  • Node.js: 22.0.0
  • OS Name: Windows
  • System Model Name: GitHub Windows Runner
  • npm config:
; copy and paste output from `npm config ls` here
@westy92 westy92 added Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x labels Apr 25, 2024
@westy92 westy92 changed the title [BUG] <title> [BUG] npm ci fails on Windows with Node.js 22.0.0 Apr 25, 2024
zloirock added a commit to zloirock/core-js that referenced this issue Apr 25, 2024
@wraithgar
Copy link
Member

This looks to be a problem with the node installation itself. This is being tracked at nodejs/node#52682

@lukekarrys lukekarrys reopened this Apr 25, 2024
@lukekarrys
Copy link
Contributor

Reopening since this will require a fix in npm.

lutzroeder added a commit to lutzroeder/netron that referenced this issue Apr 27, 2024
lutzroeder added a commit to lutzroeder/netron that referenced this issue Apr 27, 2024
lutzroeder added a commit to lutzroeder/netron that referenced this issue May 3, 2024
lutzroeder added a commit to lutzroeder/netron that referenced this issue May 3, 2024
lutzroeder added a commit to lutzroeder/netron that referenced this issue May 3, 2024
lutzroeder added a commit to lutzroeder/netron that referenced this issue May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants