Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: yarn 1.22.19 forces dependency on node 18 #5563

Closed
1 task
amiramix opened this issue Jul 3, 2023 · 2 comments
Closed
1 task

[Bug?]: yarn 1.22.19 forces dependency on node 18 #5563

amiramix opened this issue Jul 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@amiramix
Copy link

amiramix commented Jul 3, 2023

Self-service

  • I'd be willing to implement a fix

Describe the bug

Executing 'npx yarn install' with the following package.json (see later) results in an error:

Grzegorzs-MacBook-Pro:yarn-test g$ npx yarn install
yarn install v1.22.19
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning lerna > @lerna/create > pacote > cacache > @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
warning lerna > @lerna/bootstrap > @npmcli/arborist > @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
warning lerna > @lerna/bootstrap > @npmcli/arborist > [email protected]: This functionality has been moved to @npmcli/fs
warning lerna > @lerna/bootstrap > @npmcli/arborist > readdir-scoped-modules > [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
[2/4] 🚚  Fetching packages...
error @yarnpkg/[email protected]: The engine "node" is incompatible with this module. Expected version ">=18.12.0". Got "14.19.3"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

To reproduce

  1. Switch to node 14 (tested with 14.19.3 and 14.21.3)

  2. Create a folder with just one file, the following package.json:

Grzegorzs-MacBook-Pro:yarn-test g$ cat package.json 
{
  "name": "yarn-test",
  "description": "Simple app to reproduce issue with yarn install",
  "private": true,
  "browserslist": [
    "defaults",
    "not IE 11"
  ],
  "workspaces": [
    "packages/*"
  ],
  "scripts": {
    "i": "yarn install"
  },
  "devDependencies": {
    "lerna": "6.1.0"
  }
}
  1. CD to the folder and execute: npx yarn install

Environment

macOS 12.6.7
Processor Intel Core i7
node 14.19.3
npm 6.14.17

Additional context

No response

@amiramix amiramix added the bug Something isn't working label Jul 3, 2023
@igorbojk
Copy link

igorbojk commented Jul 3, 2023

The same situation.

@yarnpkg/[email protected]: The engine "node" is incompatible with this module. Expected version ">=18.12.0". Got "16.20.0"
Hope the fix will be ASAP, because we cant to change the node version in our project.

@arcanis
Copy link
Member

arcanis commented Jul 3, 2023

Duplicate with #5542

@arcanis arcanis closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants