microsoft / Oryx

Build your repo automatically.
Other
763 stars 174 forks source link

Pipeline is getting failed because of lower node.js version #2535

Open SaileshKumar2415 opened 2 weeks ago

SaileshKumar2415 commented 2 weeks ago

I have developed the code using Node.js version 20.10.0, but when I am deploying the application through Azure Static Web App, it is generating the yml file which looks for the Node.js version 18.20.4. The build is getting failed.

sarsharma commented 1 week ago

I @SaileshKumar2415 Nodejs 18 is the default version that is used by oryx build for Static Web Apps in case you do not specify a version in your package.json file. Can you please update your package.json file to include a engines section similar to this

{
  "engines": {
    "node": ">=20.10.0"
  }
}

Thanks!