Azure App Service Linux node stack: outdated npm version
Hello,
I have an Azure App Service web app running the NODE|18-lts
Linux runtime stack.
I'm doing a zip deploy of a node app and my server code ( Remix app server ) evidently uses some syntax that requires npm >= 7 to run.
However, the app service container only seems to use npm 6.14.15, regardless of the node runtime version specified in the config.
The container will utilize the node
and npm
executables at /usr/local/bin
.
The node
executable changes versions along with the config, but the npm
version stays at 6.14.15.
If I deploy my app using the service as-is, my startup command gives me a cryptic error:
npm start
npm info it worked if it ends with ok
npm info using npm@6.14.15
npm info using node@v18.12.1
npm info lifecycle