Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
NodeJs is a JavaScript runtime built on Chrome's V8 JavaScript engine. NodeJs uses an event-driven, non-blocking I/O model that makes it lightweight and efficient
NPM is the package manager for JavaScript.
How to find the NodeJs version's that azure web app supports
NodeJs Version on Azure Apps
There are two ways of setting NodeJs version in azure web Apps
Note : iisnode.yml would overwrite App Setting if it exists.
NPM Version
NPM version corresponds to the NodeJs version you have set in web app as above. You do not need to worry about setting the npm version as the version of node you selected (see below) will use the correct npm version.
Changing NodeJs Version :
1. Using App Setting
2. Using iisnode.yml file
As i have mentioned earlier, changing nodejs version in iisnode.yml file would only set the run-time environment which iisnode uses. your kudu cmd and others would still use nodejs version set at app settings.
- Setting iisnode.yml file manually
nodeProcessCommandLine: "D:\Program Files (x86)\nodejs\5.9.1\node.exe"
- Setting iisnode.yml file using package.json during source control deployment
Azure Source Control deployment process would involve below steps
"engines": {
"node": "5.9.1",
"npm": "3.7.3"
}
iisnode.yml would have below line of code
nodeProcessCommandLine: "D:\Program Files (x86)\nodejs\5.9.1\node.exe"
Changing NPM Version
"engines": {
"node": "5.9.1",
"npm": "3.7.3"
}
Update - 01/28/2018
To use the newer npm, you can set WEBSITE_NPM_DEFAULT_VERSION=5.6.0 in your Azure App Settings
Source : https://social.msdn.microsoft.com/Forums/en-US/6f0875bb-2cb1-44ce-a50d-effbd4eb34f4/please-install-the-latest-node-with-npm-560-to-solve-a-killer-npm-install-issue?forum=windowsazurewebsitespreview
Using Custom Nodejs Version
Azure App services already has most of the NodeJs versions available and the list is constantly updated. If you want to use custom NodeJs version follow below steps
nodeProcessCommandLine: "D:\home\site\wwwroot\node-v4.5.0-win-x86\node.exe"
Above folder name may change depending on your custom NodeJs version
Output:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in