Download the io.js binary
io.js can be downloaded here : https://iojs.org/download/
You just need the
iojs.exe file itself which you can get from the nightly builds, for example:
Place this file in a
To tell Azure Websitest that you want to use this version of node, rather then the version supplied by Microsoft, add a
iisnode.yml file, with this line:
note I’ve added the
--harmonyflag to enable generators.
Create a Web Server
Now just create your node app in the usual way, to start with you could write out the node version over HTTP:
Deploy to Azure in the usual way
Note that your web server will run using this version of node, but npm and other build steps will use the version supplied by Microsoft.
To make it easy, I have publised an example project on GitHub.
To make it even easier, I’ve add the ‘Deploy to Azure’ button, to get you going really quickly.