

You also get some useful information about uses of NVM.The Node Package Manager (NPM) is the most widely-used package manager for JavaScript projects and includes Node.js by default. This tutorial helped you to install nvm on Debian 10 Buster Linux system. You can run a Node script with the desired version of node.js using belwo command: nvm exec 12.18.3 server.js Conclusion To find the default Node version set for the current user, type: nvm run default -version

This will be current active version for current shell only. You can also select a different version for the current session. With this command you can find available Node.js version for the installation.

You can use the following command to list installed version’s of Node for the current user. New shells will start with the default version of node (e.g., nvm alias default). The very first version installed becomes the default. You can choose any other version to install using above command. To install a specific version of node: nvm install 12.18.3 Here node is the alias for the latest version. And use required version for your application from installed Node.js. You can install multiple Node.js versions using nvm. source ~/.profile Installing Node using NVM To apply the settings logout and login again to account or just execute below command to do the same. sudo apt install curl curl | bashĪbove script makes all the required environment settings to login script of current logged in user. Make sure your system have curl command line installed, then execute the nvm installer script on terminal. For the remote machines connect via the SSH. Firstly, Open a terminal on your machine. You can use a shell script to install NVM on Debian 10 Buster Linux system.
