Closed tmigone closed 3 months ago
[tmigone] This issue has attached support thread https://jel.ly.fish/0f7063a5-c30a-4970-b4ab-9cd3499749ee
We use the Balena CLI for downloading and creating device images (thus only a very small part of the functionality). There are ways to install Balena CLI on Node 16, but this install has not been tested on any of the functionality. We were using Node 16.13.1
and NPM 8.19.1
.
The main change which allowed installation was overriding/resolving graceful-fs
to ^4.2.10
, as per How to fix "ReferenceError: primordials is not defined" in Node.js - Stack Overflow. This is enough to get the installation working using npm install --ignore-scripts
. If using yarn
(which for this particular installation we are not) you will also need to install with --ignore-engines
, however, there might be other issues.
I never managed to get the installation working in CI/CD without using --ignore-scripts
due to a combination of errors with patch-package
. On my local I got around them by directly modifying package-lock.json
in order to prevent patch-package
from being hoisted from node_modules/balena-cli/node_modules
to node_modules
.
Both of the above issues seem closely related to https://github.com/ds300/patch-package/issues/84
Closing as we now require node >= 20.6.0
I'm aware we don't support node v16 yet, just documenting the error which seems to be the same as #2219 and #2221: