This command installs Node.js and the related NPM. You can pick any specific version to install. You can check all available Node.js versions using the following command. You can verify the installation using the below command. This command downloads the installation script and runs it.įor the nvm command to be available you need to close the terminal and open again or you can simply execute the following command to make it available in your current session. Once the NodeSource repository is added install Node. Method 1: Install Node.js via apt The simplest method for installing Node.js on Debian is from the official repository. Prerequisites A Debian 9, 10, or 11 system. sudo su usernameĮxecute the following command to install NVM. The latest version of Node.js and NPM is available from the official NodeSource Enterprise Linux, Fedora, Debian and Ubuntu binary distributions repository. If you want to install Node.js version 10.x just change setup8.x with setup10.x. This guide will teach you how to install Node.js on Debian using three different methods. Switch to the user on which you need to use Node.js. The version available at the time of this article writing is v0.39.1. You can copy the link for the latest NVM installation bash script directly from their official repository. Start by updating and upgrading the server packages to the latest version available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |