-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Something strange was happening. It looked like Lando Node.js was at v16.x, but the commit-code-check.sh found v14.x ...
$ lando ssh -c "node -v"
v16.14.2
commit-code-check.sh
$ cd web
$ core/scripts/dev/commit-code-check.sh
error Drupal@: The engine "node" is incompatible with this module. Expected version ">= 16.0". Got "14.19.1"
error Commands cannot run with an incompatible environment.
CSpell: failed
[...]
It turned out I had the older node-less package installed on my Ubuntu 20.04. Removing it and installing Node.js v16.x via the official channels below fixed it:
- https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions ->
- https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
But is there a way of running the commit-code-check.sh script via Lando, to avoid using the machine version?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels