Node.js
If you need Node.js available within your existing website, which is based on another Type, you can enable Node.js by setting nvm
to true
within the Custom JSON Website Level Configuration:
{
"nvm": true
}
Warning
Use only to enable Node.js within another website type (e.g. Website of Type PHP) for actions like gulp. To run your own Node.js based website, use the Node.js type.
Select Node.js version
By default, the latest Node.js LTS version will be installed, however you can also install and select any other version:
$ nvm ls-remote
$ nvm install <version>
$ nvm alias default <version>
Tip
See the nvm readme for details.