Is there an existing issue for this?
This issue exists in the latest npm version
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
- on GitHub hosted runners
- running windows
- running Node 22.0.0
- 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
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
On Windows,
npm cifails.(Note: this works fine on Linux and macOS)
https://github.com/westy92/holiday-event-api-js/actions/runs/8827184894/job/24234452752
Expected Behavior
npm cisucceedsSteps To Reproduce
npm ciEnvironment
; copy and paste output from `npm config ls` here