Trying to create apps with latest Shopify CLI ( 3.61.2)
npm init @Shopify_77 /app@latest
…
Receive this error:
Command failed with exit code 1: npm install
npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: undefined
npm error notsup Not compatible with your version of node/npm: undefined
npm error notsup Required: {“node”:“^18.20 || ^20.10 || ^22”}
npm error notsup Actual: {“npm”:“10.8.1”,“node”:“v20.6.0”}
Yet I am running a valid version of node.
Same results with older mac OS11 with Darwin64 && with new Macbook w/ ARM64.
Earlier versions of CLI worked fine.
Thoughts on what I need to look into would be most appreciated.
I am having the same issue when trying to create an app via shopify CLI
Error coming from npm install
Command failed with exit code 1: npm install
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.20 || ^20.10 || >=21.0.0”}
npm ERR! notsup Actual: {“npm”:“9.3.1”,“node”:“v18.14.0”}
Any suggestions how this can be fixed?
Ivakaraivanska,
In my case, I was able to resolve the issue by
- Deleting all versions of node
- Reinstalling nvm
- Deleting node_modules directory (and your lock file for your installer)
– in my case, I did have an invalid node version there; you may have portions of invalid node v18.14.0 persisting
- Installing node v22.3.0
- Following the shopify remix quickstart instrucrtions
https://shopify.dev/docs/api/shopify-app-remix
==> npm init @Shopify_77 [email removed]
Good luck!
PREVIEW