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. |
Beta Was this translation helpful? Give feedback.
-
Hey all, As mentioned correctly by @Strepto, this is a possibility as of today to specify the engine versions in |
Beta Was this translation helpful? Give feedback.
-
Still having this issue despite updating package.json to use a newer Node engine. Any fix for this? @Reshmi-Sriram |
Beta Was this translation helpful? Give feedback.
-
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
node
andnpm
. And the warning about thelockfile
version 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.x
fornode
and8.4.x
or8.5.0
fornpm
.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions