![]() ![]() 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. By default this module installs packages from the NodeSource repository on Debian. Running the following commands is all that’s needed for the installation. A defined type nodejs::npm is used for the local installation of npm packages. Node.js repository has been added, The next step is installation of Node.js 12 on Ubuntu / Debian / Linux Mint. 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 However, this needs to be added to your system manually. 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. |