Versions of node/npm in the Azure/static-web-apps-deploy Github action #789
Replies: 3 comments
|
By adding this: {
....
"engines": {
"node": ">=16.0.0",
"npm": " >=8.0.0"
},
...
}to your This also enforces that developers use the same or similar tooling. |
|
Hey all, As mentioned correctly by Nils Henrik Hals (@Strepto), this is a possibility as of today to specify the engine versions in |
|
Still having this issue despite updating package.json to use a newer Node engine. Any fix for this? Reshmi Sriram (@Reshmi-Sriram) |
Uh oh!
There was an error while loading. Please reload this page.
I don't know for sure if these versions (see below) are tied to the Azure/static-web-apps-deploy Github action or if they're tied to the Github runner which is executing the action.
Here's the output I see when the action runs:
Those are pretty old versions of
nodeandnpm. And the warning about thelockfileversion is concerning.So far it hasn't caused any errors when building our app. But if the "environment" (not sure if that's the best word - maybe "container") for the Azure/static-web-apps-deploy Github action is what's resulting in those versions, it would great to update them to something like
16.4.xfornodeand8.4.xor8.5.0fornpm.Thanks.
All reactions