Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run commit-code-check.sh via Lando? #59

Open
gitressa opened this issue Apr 15, 2022 · 0 comments
Open

Run commit-code-check.sh via Lando? #59

gitressa opened this issue Apr 15, 2022 · 0 comments

Comments

@gitressa
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant