You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Something strange was happening. It looked like Lando
Node.js
was atv16.x
, but thecommit-code-check.sh
foundv14.x
...commit-code-check.sh
It turned out I had the older
node-less
package installed on my Ubuntu 20.04. Removing it and installingNode.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?The text was updated successfully, but these errors were encountered: