How to specify Node version for Oxygen in Hydrogen?

Solved

How to specify Node version for Oxygen in Hydrogen?

jlemrond
Shopify Partner
2 0 1

Hello,

I have a storefront using Hydrogen and deploying to Oxygen.  It has been working perfectly for a few months now but I am having issues upgrading the node version that is used for the app.

It is currently set to node version 16, which is no longer maintained and I can not find anyway to upgrade.  I have tried to set a `NODE_VERSION` env variable.  I have also tried adding `use-node-version=18.15.0` to the `.npmrc` file.  Neither work.  Can someone point me in the right direction to specifying the node version used when the app is build on Oxygen?

Regards,
Jason 

 

Screen Shot 2024-01-13 at 4.06.57 AM.png

Accepted Solution (1)

Weaverse
Shopify Partner
81 26 35

This is an accepted solution.

Hello @jlemrond, you can change the Node.js version from your GitHub Action build file at ".github/workflows/oxygen-deployment-xxxxx.yml".
For example: https://github.com/Weaverse/pilot.weaverse.dev/blob/72a7454833f3ad4ae80050fa78bedad786e23207/.github...

Helping merchants build super unique, high-performance storefronts using Weaverse + Hydrogen.
Looking for Development & Agency partners.
If you find the answer helpful, give it a thumbs up!
Our App: Theme Customizer for Shopify Hydrogen
Join our Weaverse + Hydrogen community: Weaverse Community

View solution in original post

Replies 2 (2)

Weaverse
Shopify Partner
81 26 35

This is an accepted solution.

Hello @jlemrond, you can change the Node.js version from your GitHub Action build file at ".github/workflows/oxygen-deployment-xxxxx.yml".
For example: https://github.com/Weaverse/pilot.weaverse.dev/blob/72a7454833f3ad4ae80050fa78bedad786e23207/.github...

Helping merchants build super unique, high-performance storefronts using Weaverse + Hydrogen.
Looking for Development & Agency partners.
If you find the answer helpful, give it a thumbs up!
Our App: Theme Customizer for Shopify Hydrogen
Join our Weaverse + Hydrogen community: Weaverse Community
jlemrond
Shopify Partner
2 0 1

This is exactly what I was searching.  Thank you for taking the time to respond.