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:
But is there a way of running the commit-code-check.sh script via Lando, to avoid using the machine version?
Something strange was happening. It looked like Lando
Node.jswas atv16.x, but thecommit-code-check.shfoundv14.x...commit-code-check.sh
It turned out I had the older
node-lesspackage installed on my Ubuntu 20.04. Removing it and installingNode.js v16.xvia the official channels below fixed it:But is there a way of running the
commit-code-check.shscript via Lando, to avoid using the machine version?