On Windows, launch the Windows PowerShell as an administrator. const http = require('http') Ĭonst server = http. Updating the Node.js version using NPM NPM is installed by default with Node.js and is the easiest way to update to any new version on Linux, macOS, or Windows when you do not need to use multiple versions. $ mkdir ~/projectsĬreate a new file called hello-world.js with the following content. $ node -versionĦ.10.3 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 the installation of Node.js 12 on Ubuntu / Debian / Linux Mint. | sudo -E bash - Step 3: Install Node.js 12 on Ubuntu / Debian / Linux Mint
0 Comments
Leave a Reply. |