![]() ![]() node -v npm -vĬongratulations! You have now installed Node.JS and NPM on your Debian 11 server. Once installed, verify the installed version of Node.js with the same commands as mentioned earlier in this tutorial. The Node.js package contains both the node and npm binaries. Now, install the Node.js version 16 with the following command: apt install nodejs x) just change the setup_16.x with setup_14.x. ![]() If you want another version of Node.js (for example 14. We are going to download and run the Node.js installation script for version 16. NodeSource maintains an APT repository with multiple Node.js versions.įirst command will install ‘curl’ in our system: apt install curl -y The second method requires a bit more effort than the first, however in case you want to install a specific version of NodeJS and/or NPM, then this method is preferred. apt install nodejs npmĪs soon as both packages are installed, you can verify their version by executing the following commands: node -v npm -v Method 2: Install Node.js and npm from NodeSource Note that at the time of writing this tutorial (November 2022), Node.js version 12.22 is included by default on Debian’s repositories. This is the simplest and most reliable way. The following command will install both packages at once. Method 1: Install Node.js and NPM via Debian Repository We will demonstrate three different, easy ways. Now that our Debian 11 environment is fully up to date we can proceed to installing Node.js and NPM. You can do so by executing the following commands: apt update & apt upgrade -y ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |