opksh.blogg.se

Node stable version
Node stable version













node stable version

Once installed, verify the installed version of Node.js with the following command: $ node -v The Node.js package contains both the node and npm binaries. Install the Node.js version 16.x by running the following command: $ apt install nodejs Note: If you want another version of Node.js (for example 14x,) you just need to change the setup_16.x with setup_14.x. This will add the GPG key and Node.js repository to the APT. Install the curl with the following command: $ apt install curlĭownload and run the Node.js installation script by running the following command: $ curl -sL | bash. We will install the latest LTS v16 version. NodeSource maintains an APT repository and contains multiple Node.js versions.Īt the time of writing this tutorial, the NodeSource repository provides v17, v16, v14, and v12 versions. If you want to install a different version of Node.js than the one provided in the Debian repositories, you can use this method. Method 2: Install Node.js and npm from NodeSource

node stable version

You should get the following output: 7.5.2 You can also check the npm version using the following command: $ npm -v You should get the following output: v12.22.5

node stable version

Once both packages are installed, verify the Node.js version using the following command: $ node -v Install the Node.js and npm with the following command: $ apt install nodejs npm At the time of writing this tutorial, Node.js version 12.22.5 is included by default on Debian 11 repositories. However, it does not contain the latest Node.js version. The simple and easiest way to install Node.js and npm is to install them from the Debian default repository. $ apt upgrade Method 1: Install Node.js and npm from Debian Repository You can do this by running the following commands: $ apt update Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all Debian OS packages installed on the server are up to date. You will need to replace ‘IP_Address‘ and ‘Port_number‘ with your server’s respective IP address and SSH port number. Log in to the Server & Update the Server OS Packagesįirst, log in to your Debian 11 server via SSH as the root user: $ ssh -p Port_number Access to the root user account (or access to an admin account with root privileges).Method 3: Install Node.js and npm with NVM.Method 2: Install Node.js and npm from NodeSource.Method 1: Install Node.js and npm from Debian Repository.

node stable version

Log in to the Server & Update the Server OS Packages.















Node stable version