


To verify the contents of this script with nano (or your preferred text editor) : nano nodesource_setup.sh Note: Ensure to replace 12.x with your preferred version string. cd ~ curl -sL 12.x -o nodesource_setup.sh When you install PPA, this will add the repository to our package list and allow us to install the new packages using apt.

It still works with apt and will have more up-to-date versions of Node.js than the official Debian repositories. You also get some useful information about uses of NVM.If you want to work with an alternate repository, you can install from PPA (personal package archive) maintained by NodeSource. 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. Login with a user account to which you need to install Node.js.A running Debian 10 Linux system with shell access.It will also help you to install different Node version and other useful examples. This tutorial will help you to install nvm on Debian 10 Linux system.
