![]() ![]() const http = require('http') Ĭonst server = http. mkdir ~/projectsĬreate a new file called hello-world.js with the following content. ![]() $ node -versionĨ.5.1 Step 4: Test Node.js on Ubuntu/Debian/Linux MintĬreate an example Node.js web server which responds with ‘ Hello, World!‘. You can as well install development tools used to build native addons: sudo apt -y install gcc g++ makeĬonfirm Node.js 12 installation by checking the version installed. Running the following commands is all that’s needed for the installation. ![]() Node.js repository has been added, The next step is installation of Node.js 12 on Ubuntu / Debian / Linux Mint. Installing NodeJS from Debian repository Step 1: Update Packages Repository Step 2: Install Nodejs and NPM: Step 3: Check version: Using NodeSource PPA. Sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificatesĬurl -sL | sudo -E bash - Step 3: Install Node.js 12 on Ubuntu / Debian / Linux Mint If you have a previous version of Node.js installed already, either from the default repositories or a different NodeSource repository, this command will handle upgrading for you: su -c apt install -y nodejs. With your system up to date, you can install Node.js v14.x. However, this needs to be added to your system manually. Installing or upgrading to Node.js v14.x. Sudo apt -y upgrade Step 2: Add Node.js APT RepositoryĪll releases of Node.js are derivable from the official APT repository. As a norm, we work on an updated system to ensure we don’t have dependency issues. ![]()
0 Comments
Leave a Reply. |