How to Install Node.js on your PC / Mac.

Anyone who doesn’t know Node.js yet? Anyone know JavaScript? If we know JavaScript as a client side scripting, JavaScript is now available for server side scripting as well. He is Node.js. This means that you can now build web services using the JavaScript language. Here is the tutorial How to Install Node.js on your PC / Mac.

Node.js has NPM or Node Package Manager, which is the management of library packages for Node.js. NPM makes it easy for developers to share libraries and application nodes, so other people can easily install and uninstall libraries in their programs.

As for how to install Node.js actually the steps have been explained on the Node.js website itself. But in this article we will explain the practical steps of installing Node.js for Windows, Mac, and Linux.

Installing Node.js on Windows

For installation on Windows, you can simply download the installer that has been provided for Windows. Open the Node.js download page and click the download link for Windows Installer. Run the installer and follow the instructions like installing other applications on Windows.

Installing Node.js on Mac OS

Just like in Windows, for installation on Mac OS, you only need to download the installer that has been provided for Mac OS. Open the Node.js download page and click the download link for Macintosh Installer. Run the installer and follow the instructions as usual to install the application.

Installation on Ubuntu and Debian-based Linux

For installation on Ubuntu, it’s easier to use the Package Manager. The following steps can be applied to Ubuntu 14.04 LTS and above and Debian 8 and above. It can also be applied to derivative distributions such as Linux Mint 17, Elementary OS Freya and Trisquel 7.

At the terminal run the following command:

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential

As for installations on other linux distributions, you can refer to the installation guide page directly on the Node.js website.

See also  Learn Node.js : What is NPX? and What's the Difference with NPM?

Check Installation Results

To ensure that NodeJS is properly installed and registered in the path (for Windows), open a new terminal or cmd window then type the following command:

node -v
npm -v

The two commands above function to check the version number of nodejs and npm. If the version number appears then that means nodejs and npm are ready to use.

Thanks for reading, The random creative will share another tutorial soon.

 

Share This Article:

Leave a Reply

Your email address will not be published. Required fields are marked *