Skip to content

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

@gitressa

Description

@gitressa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions