Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SaileshKumar2415 opened this issue Oct 18, 2024 · 1 comment
Open

Comments

@SaileshKumar2415
Copy link

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
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants