ericcornelissen / depreman

Manage npm deprecations
https://www.npmjs.com/package/depreman
GNU Affero General Public License v3.0
0 stars 0 forks source link

Support npm major version 9 #41

Closed ericcornelissen closed 2 weeks ago

ericcornelissen commented 2 weeks ago

When starting this project I just decided to support the version of npm I was using at the time, which was:

https://github.com/ericcornelissen/depreman/blob/ea3d538aae110b5a32dd7be1504d7588f8715f57/package.json#L25

However, I believe version 9 is also still pretty popular. In particular, I found that Dependabot still uses npm v9(?) e.g. from this error (from this log):

...
updater | 2024/11/14 05:10:43 INFO <job_916633335> Requirements to unlock own
2024/11/14 05:10:43 INFO <job_916633335> Requirements update strategy bump_versions
updater | 2024/11/14 05:10:43 INFO <job_916633335> Updating @typescript-eslint/parser from 8.10.0 to 8.14.0
updater | 2024/11/14 05:10:45 WARN <job_916633335> NPM : npm WARN using --force Recommended protections disabled.
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: depreman@0.3.2
npm ERR! notsup Not compatible with your version of node/npm: depreman@0.3.2
npm ERR! notsup Required: {"node":"^22","npm":"^10"}
npm ERR! notsup Actual:   {"npm":"9.6.5","node":"v20.18.0"}
...

I suspect npm v9 and v10 are pretty similar for the purposes of this project, the main point will be to properly test with both versions.