As of this PR to homebrew/versions and this PR to homebrew, the answers involving brew tap homebrew/versions or.-lts packages no longer work. The correct answer is now: brew install node@ Where is 0.10, 0.12, 4, etc.For example, to install Node.js v6 (as of this writing, the most recent LTS version).
Introduction
Node.js is an open source, cross platform, JavaScript runtime platform which enables JavaScript to be used for server-side scripting. Although .js is the extension to a JavaScript file but it doesn't represent any file of the framework. Now it has become foundational element of 'JavaScript everywhere' paradigm.
In this tutorial, we will learn the steps involved in the installation process of Node.js on MacOS.
Prerequisites
- MacOS
- Homebrew must be installed on the system.
- In this section, you will get SQL Server 2017 running on Docker. After that, you will install the necessary dependencies to create Node.js apps with SQL Server locally on your Mac. Step 1.1 Install SQL Server. In order to run SQL Server on your Mac, we are going to use the SQL Server on Linux Docker Image. For this, you need to install Docker.
- How to Install Node.js on MacOS Introduction. Node.js is an open source, cross platform, JavaScript runtime platform which enables JavaScript to be used for server-side scripting. Although.js is the extension to a JavaScript file but it doesn't represent any file of the framework.
Installation
This includes the following steps.
1) Update repository index of Homebrew package installer
Repository index of homebrew package installer needs to be updated first. It can be done with the help of following command:
2) Install Node.js
After updating the repository index of homebrew package installer, we need to install Node.js using the following command:
Node Js V 10 Download
This installs Node.js inside the Celllar directory of /usr/local/.
To verify that we have installed the desired version of Node.js, we can run the command node -v. It will show the version installed on our MacOS.
Download Node Js Version 10
To run node.js on MacOS, just execute the node command. It will provide the development environment in which we can run the JavaScript code.
Well, we have successfully installed Node.js on MacOS.
Update Node Js
Next TopicHow to Install Drupal on Mac