Ensure the Azure Web App has the node version you want.
- Go to yoursite.scm.azurewebsites.net
- Choose Debug Console (PowerShell or CMD)
- Navigate to
D:\Program Files (x86)\nodejs
- Run
dir
to see the available nodejs versions.
For instance, if there is a directory named 6.3.0
, then you can use it.
// App Setting
WEBSITE_NODE_DEFAULT_VERSION 6.3.0
// package.json
engines":{"node": "6.3.0"}