incompatible with NPM 17
We are currently using NPM 16 to build this project and it is incompatible with NPM 17:
$ docker run -it -v $PWD:/search node:17-alpine sh
Unable to find image 'node:17-alpine' locally
17-alpine: Pulling from library/node
a0d0a0d46f8b: Already exists
5917162e2eae: Pull complete
2380bcf66246: Pull complete
c55a18c6df4f: Pull complete
Digest: sha256:959c4fc79a753b8b797c4fc9da967c7a81b4a3a3ff93d484dfe00092bf9fd584
Status: Downloaded newer image for node:17-alpine
/ # cd search/
/search # npm build
Unknown command: "build"
Did you mean this?
npm run build # run the "build" package script
To see a list of supported npm commands, run:
npm help
/search # npm ci
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
added 388 packages, and audited 389 packages in 46s
49 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm notice
npm notice New patch version of npm available! 8.1.0 -> 8.1.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.2
npm notice Run npm install -g npm@8.1.2 to update!
npm notice
/search # npm run build:prod
> snet-asclepios-search@0.1.4 build:prod
> webpack --mode=production --node-env=production
[webpack-cli] Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at BulkUpdateDecorator.hashFactory (/search/node_modules/webpack/lib/util/createHash.js:155:18)
at BulkUpdateDecorator.digest (/search/node_modules/webpack/lib/util/createHash.js:80:21)
at /search/node_modules/webpack/lib/DefinePlugin.js:595:38
at _next31 (eval at create (/search/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:42:1)
at _next9 (eval at create (/search/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:97:1)
at Hook.eval [as call] (eval at create (/search/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:119:1)
at Hook.CALL_DELEGATE [as _call] (/search/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/search/node_modules/webpack/lib/Compiler.js:1053:26) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
/search #
Definition of Done:
-
resolve all incompatibilities -
test -
merge !44 (closed)
Hints:
- none...
Edited by Ilka Schulz