Closed
Description
Describe the problem
IDE2 blindly installs the latest dependency of @octokit/rest
for the generation:
It fails:
Run yarn add @octokit/rest --ignore-workspace-root-check
yarn add v1.22.[19](https://github.com/arduino/arduino-ide/actions/runs/6010832696/job/16303060348#step:6:20)
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
warning @puppeteer/[email protected]: Invalid bin entry for "@puppeteer/browsers" (in "@puppeteer/browsers").
warning [email protected]: The engine "vscode" appears to be invalid.
error @octokit/[email protected]: The engine "node" is incompatible with this module. Expected version ">= 18". Got "16.[20](https://github.com/arduino/arduino-ide/actions/runs/6010832696/job/16303060348#step:6:21).2"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Error: Process completed with exit code 1.
The latest version has dropped Node16 support: https://github.com/octokit/rest.js/releases/tag/v20.0.0
To reproduce
Run a changelog generation with Node.js 16
Expected behavior
either put the dependency into the main package.json
to make sure it works with every yarn
execution or pin the version (19.0.13) of the npm package that works with the current Node.js version.
Arduino IDE version
2.2.0
Operating system
N/A
Operating system version
CI
Additional context
Related #2199
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details