diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a96da0816..7e55a1641 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -77,7 +77,7 @@ jobs: sudo apt install --yes --no-install-recommends npm curl # need to update nodejs because with ubuntu's default nodejs version we would get this error: # error @jest/core@29.4.1: The engine "node" is incompatible with this module. Expected version "^14.15.0 || ^16.10.0 || >=18.0.0". Got "12.22.9" - sudo npm install -g n + sudo npm install --global n sudo n lts - name: Print versions run: | @@ -128,7 +128,7 @@ jobs: # at wrapSafe (internal/modules/cjs/loader.js:915:16) # ... # ``` - sudo npm install -g n + sudo npm install --global n sudo n lts - uses: actions/checkout@v2 with: