nvm --version. The terminal will show command not found as the code has been added to your profile but hasn’t run yet. It runs on every login, so login again by creating a new session. Run
nvm --versionagain and this time you should be able to see the installed version of NVM.NVM installation
nvm install nodeto install the latest version of node or use
nvm install <node_version>to install a specific version of node. Once node is installed, you can check the installed version with
node --version.Node.js installation
<username>with your GitHub username,
<repository-name>with the name of your node.js app repository and
<folder-name>with the name of the folder you want to clone the repository into. This folder will be created under
cd <folder-name>to move inside this folder and
lsto see its contents.
npm installyou should run it manually first, otherwise you can directly issue the command to start the app which should install the dependencies automatically. There are several ways to start the app depending on how you have set it up. Choose one which suits you.
killall -9 node. Install PM2 globally with the following command:
pm2 listand to monitor any one of the processes run