You need to sign in or sign up before continuing.
npm install crashes on @matrix-org/olm with NPM v7 (Node v15+)
Issue
New contributors installing the Gitter project locally with Node v15+ or NPM 7 will trigger a package-lock upgrade from v1 to v2. However NPM will try to poll the npmjs registry for a package that refers to a Gitlab tar archive of @matrix/olm
in the dependencies of matrix-bot-sdk
:
package-lock.json extract:
"matrix-bot-sdk": {
"version": "0.6.0-beta.2",
"resolved": "https://registry.npmjs.org/matrix-bot-sdk/-/matrix-bot-sdk-0.6.0-beta.2.tgz",
"integrity": "sha512-D9aQ2++1bJIzka2uIz22HkaeyT058QGOh96xdxiDOaezyzLY5BN7ehYg+P0xRzDYDFKx9DbqDYCt97IkfahtPw==",
"requires": {
"@matrix-org/olm": "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.4.tgz"
NPM log (run with NPM 7+)
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
npm WARN old lockfile HttpErrorGeneral: 404 Not Found - GET https://registry.npmjs.org/@matrix-org%2folm - Not found
Current work-around
Use nvm
and nvm use 14