Closed targos closed 4 months ago
There's another issue on Windows with v22. It's related to npm install
: https://github.com/nodejs/citgm/actions/runs/8831148407/job/24712997804?pr=1056
There's another issue on Windows with v22. It's related to
npm install
: https://github.com/nodejs/citgm/actions/runs/8831148407/job/24712997804?pr=1056
I don't think that's Windows specific -- it looks like the error message has subtly changed in newer npm (the Windows run picked up Node.js 22.1.0 but the macOS and Linux runs used 22.0.0).
Locally with Linux:
Prior to Node.js 22.1.0:
$ nvm use 22.0.0
Now using node v22.0.0 (npm v10.5.1)
$ npm install THIS-WILL-FAIL
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/THIS-WILL-FAIL - Not found
npm ERR! 404
npm ERR! 404 'THIS-WILL-FAIL@*' is not in this registry.
npm ERR! 404 This package name is not valid, because
npm ERR! 404 1. name can no longer contain capital letters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in: /home/rlau/.npm/_logs/2024-05-08T15_13_37_587Z-debug-0.log
$
With Node.js 22.1.0:
$ nvm use 22.1.0
Now using node v22.1.0 (npm v10.7.0)
$ npm install THIS-WILL-FAIL
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/THIS-WILL-FAIL - Not found
npm error 404
npm error 404 'THIS-WILL-FAIL@*' is not in this registry.
npm error 404 This package name is not valid, because
npm error 404 1. name can no longer contain capital letters
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /home/rlau/.npm/_logs/2024-05-08T15_14_15_812Z-debug-0.log
$
i.e. ERR!
is now error
and no longer matches the regexp:
We could change the regexp to:
testError: /npm (ERR!|error) 404 Not [Ff]ound\s*(:)? .*THIS-WILL-FAIL(@0\.0\.1)?/
or wildcard out (i.e. .*
) the ERR!
part.
I've pushed an update to the test.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.74%. Comparing base (
12e6902
) to head (eb1136f
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks, lgtm
Blocked on https://github.com/nodejs/node/issues/52682