From 6f7dc8bd7b597902920c9b571f06fbcce69d0c72 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Thu, 25 Apr 2024 12:19:12 +0900 Subject: [PATCH] Exclude Node.js 22 on Windows to prevent unknown error ``` 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 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ef7507..bcab3ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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'