Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Shopify CLI App Creation Error

Shopify CLI App Creation Error

tomadelaney
Shopify Partner
19 2 2

Trying to create apps with latest Shopify CLI ( 3.61.2)

npm init @Shopify/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.

 



Replies 2 (2)

ivakaraivanska
Visitor
3 0 0

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?

tomadelaney
Shopify Partner
19 2 2
Ivakaraivanska,
In my case, I was able to resolve the issue by
1) Deleting all versions of node
2) Reinstalling nvm
3) 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
4) Installing node v22.3.0
5) Following the shopify remix quickstart instrucrtions
https://shopify.dev/docs/api/shopify-app-remix
==>  npm init @Shopify/app@latest

Good luck!