berry icon indicating copy to clipboard operation
berry copied to clipboard

docs: update Node.js requirements for Corepack

Open TheConstructor opened this issue 3 years ago • 2 comments
trafficstars

According to https://nodejs.org/dist/latest/docs/api/corepack.html, https://nodejs.org/en/blog/release/v14.19.0/ and https://nodejs.org/en/blog/release/v16.9.0/ corepack did not start shipping in 16.10 but 16.9 and is also included in v14 starting with 14.19. Trying to follow the instructions, when corepack is already provided, leads to errors with code EEXIST

Checklist

  • [ ] I have set the packages that need to be released for my changes to be effective.
  • [x] I will check that all automated PR checks pass before the PR gets reviewed.

TheConstructor avatar Jul 11 '22 08:07 TheConstructor

Iirc the 16.9 Corepack had a bug that prevented yarn init -2 from working, so it's only viable starting from 16.10

@arcanis Ok, but would installing corepack work in 16.9?

TheConstructor avatar Jul 11 '22 09:07 TheConstructor

@arcanis I finally found some minutes to prepare a Docker-image and use https://containers.dev/ to run some tests. I didn't manage to get corepack to correctly run yarn with 16.9, when I issued corepack enable before running npm i -g corepack, so you are definitely right, that corepack enable shouldn't be suggested. I added a warning, so hopefully few people encounter my problems.

TheConstructor avatar Jul 13 '22 09:07 TheConstructor

Closing since the live documentation no longer mentions the Node.js version ranges.

merceyz avatar Oct 18 '23 21:10 merceyz