Closed Strato closed 2 years ago
If I remove "preinstall": "npx npm-force-resolutions"
from the sub-package's package.json
I get the same error, so this is not related to npm-force-resolutions
. Sorry.
For the record, I added this in my lerna.json
config file:
"npmClientArgs": ["--legacy-peer-deps"],
But now I have the following error Invalid version: ^6.2.0
which boils down to this:
"resolutions": {
"fs-capacitor": "^6.2.0"
}
It seems to come from the ^
. If I remove it the installation works but my app is broken.
Hello,
I've switched to Node 16.15.1 on my machine, which uses NPM 8.11.0, and I have this error when I run
rm -rf **/node_modules && npm i && npx lerna bootstrap
:(for the record, both
apollo-metrics
andprom-client
are old dependencies which I haven't touched for the past 10 months)It happens when Lerna get to the point of installing a sub-package of my repo which uses
npm-force-resolutions
as pre-install. The logs show thatnpx npm-force-resolutions
is the command that leads to the error.This is related to this issue on the NPM repo, which describes a new behavior of NPM (considered a """feature""") introduced in NPM 8.6.0.
I think you should take a look at it since it seems to break the use of
npm-force-resolutions
.