
We regularly update Node.js to the latest available versions. Since some applications might not be fully compatible with the latest versions of Node.js, you have the option to run custom Node.js versions using the Node Version Manager (nvm).
Before you install Node Version Manager, there are a few settings to check and configure on your hosting account:
You need to connect to your account via SSH and follow the steps listed below to install Node Version Manager:
Note: If you wish to install Node Version Manager on an existing WebApps project, skip steps #1 and #2.
You can now work on your web application using the desired Node.js version.
After you have installed Node Version Manager and the desired Node.js version (e.g. 18.15.0) on your project, you have to configure that Node.js version to be used by default. To do this, follow these steps:
Alternatively, you can add your current start command of the web application as a new line at the end of the start.sh wrapper script and set the start command of the web application to execute only the start.sh wrapper script. For example, the start.sh wrapper script will look like this if you wish to have your web application execute "node app.js" with Node.js version 18.15.0:
#!/bin/bash
killall node
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
unset NPM_CONFIG_PREFIX
nvm use 18.15.0
node app.js
and your start command will look like this:
/home/YOUR_USERNAME/private/nodejscustom/start.sh
You will need to make sure you replace YOUR_USERNAME with your hosting account's username.
All prices are in USD. No setup fees. Minimum contract period for hosting plans - 1 month. Full prepayment for the contract period. Money‑back guarantee: 15 days for accounts purchased for 1 month and 100 days for accounts on annual billing. Automatic renewal is optional. Fees for domain registrations and SSL certificates cannot be refunded in case of an early contract termination.
ICDSoft 2001-2026 © All rights reserved
Terms of Use
|
Legal notice
|
Privacy
|
Reseller terms
|
Cookies