Yarn fails to install lerna on node 8
See original GitHub issueDue to one of your deep subdependencies, lerna fails to install on any node version <10.
Expected Behavior
Lerna installs correctly when using node 8.
Current Behavior
Lerna fails to install with error mkdirp@1.0.3: The engine "node" is incompatible with this module. Expected version ">=10". Got "8.17.0"
Possible Solution
The offending dependency is:
@lerna/create-symlink
> @zkochan/cmd-shim
> mkdirp-promise
> mkdirp
Unfortunately, mkdirp-promise
depends on version "*"
of mkdirp
, so there is no way to simply roll back a version of your @zkochan/cmd-shim
dependency. The only way to fix this would be to remove your dependency on @zkochan/cmd-shim
.
Steps to Reproduce (for bugs)
$ yarn global add lerna
yarn global v1.21.1
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error mkdirp@1.0.3: The engine "node" is incompatible with this module. Expected version ">=10". Got "8.17.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
Context
I am one of the maintainers of https://github.com/open-telemetry/opentelemetry-js/pull/736. We want to support node version 8, which means we need to test for it. In Circle CI, we test with node 8, 10, and 12 by running through the full install and build process using that respective docker container.
Your Environment
Executable | Version |
---|---|
lerna --version |
failed to install |
npm --version |
6.13.4 |
yarn --version |
1.21.1 |
node --version |
8.17.0 |
OS | Version |
---|---|
Docker Node Container | node:8 |
MacOS | Catalina 10.15.2 |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:20
- Comments:5
Top GitHub Comments
Lerna version
v3.1.4
is the last one that works on node8.10
. Attempting to installv3.2.0
withyarn
results inVersions after
v3.2.0
result in different modules complaining, such asmkdirp@1.0.4
orfs-extra@9.0.0
. Attempting to install with NPM will succeed, but fail with yarn.I don’t know if it helps, but just in case, I’m using yarn workspaces.
Hi Folks 👋
You may or may not know that lerna is now under the stewardship of Nrwl (announcement here https://github.com/lerna/lerna/issues/3121), a company with a long history of not just producing valuable open-source software (OSS), but also backing others (at the time of writing, Nrwl has donated over $50,000 to OSS it hasn’t created, see https://opencollective.com/nx for full details).
Quite simply, Nrwl ❤️ OSS, and is committed to making lerna the best it can be. We use it ourselves.
We hope you will continue to be a part of this community as we look to take things forward from here!
Please see https://github.com/lerna/lerna/discussions/3140 for more details on our plans for 2022.
In the case of this specific issue, due to its age it is no longer applicable because at the time of writing this comment the earliest supported node version is node 14.
If you run into any issues on the latest version of lerna, please feel free to open a new issue and follow the instructions: https://github.com/lerna/lerna/issues/new/choose
Many thanks 🙏