Since few days ago, I started getting this error on CircleCI:
> setup:js
> npm install && npm install --prefix themes/mytheme
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: undefined
npm ERR! notsup Not compatible with your version of node/npm: undefined
npm ERR! notsup Required: {"node":">=18.0.0","npm":">=8.0.0"}
npm ERR! notsup Actual: {"npm":"8.19.4","node":"v16.20.2"}
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-12-07T21_56_30_733Z-debug-0.log
Exited with code exit status 1
I tried adding this:
- run:
name: Install Node 18
command: |
nvm install 18
- run:
name: Choose Node version
command: |
nvm use 18
But still getting the same error.
Does anyone have idea how I can solve this? Thanks.