Skip to content

Commit

Permalink
Exclude Node.js 22 on Windows to prevent unknown error
Browse files Browse the repository at this point in the history
```
node:internal/modules/cjs/loader:1205
  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:14)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.0.0
```

https://github.com/stylelint/.github/actions/runs/8826068314/job/24231220275?pr=35#step:5:1
  • Loading branch information
ybiquitous committed Apr 25, 2024
1 parent 2022f39 commit 6f7dc8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test:
uses: ./.github/workflows/test.yml
with:
node-version: '["16", "18", "20", "current"]'
node-version: '["16", "18", "20", "22"]'
os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
exclude: '[{"node-version": "16", "os": "windows-latest"}]'
exclude: '[{"node-version": "22", "os": "windows-latest"}]'
test-options: 'foo bar'

0 comments on commit 6f7dc8b

Please sign in to comment.