Re: Shopify's node version is different to my local node version

Solved

Shopify's node version is different to my local node version

Francis_Kolms
Shopify Partner
4 1 2

I'm running into issues with creating a new Shopify app in Node.js and it seems that the issue might be due to different node versions between my local machine and what Shopify CLI3 uses.

This is what I get when checking Shopify and local Node versions:

$ shopify --version
@shopify/cli/3.45.1 darwin-x64 node-v20.0.0

$ node -v
v16.15.0

How can I change the node version Shopify uses?

Accepted Solution (1)

Francis_Kolms
Shopify Partner
4 1 2

This is an accepted solution.

Installing Node 18.16.1 (latest stable version) resolved the issue with the install. I guess Shopify CLI3.45.1 is not compatible with Node below version 18.

View solution in original post

Replies 4 (4)

Francis_Kolms
Shopify Partner
4 1 2

This is an accepted solution.

Installing Node 18.16.1 (latest stable version) resolved the issue with the install. I guess Shopify CLI3.45.1 is not compatible with Node below version 18.

tranduyhung
Shopify Partner
2 0 0

I have Shopify CLI 3.49.7, I tried Node v18.16.1 as well as v18.0.0 but my Shopify still uses Node v16.19.0.

giffen-good
Shopify Partner
3 0 2

Have you updated the workflow file? You can specify the node version there for the production build at .github/workflows/oxygen-deploy-{YOUR_DEPLOYMENT_ID}.yml

tranduyhung
Shopify Partner
2 0 0

I use Admin API (Node and React), not Storefront API, so I can't apply Oxygen config.