Install Node.js
To install Node.js, perform the following steps:
Download Node.js from the following link: https://nodejs.org/en/. The Node.js page appears.
At the time of writing this guide, the mature and dependable version of Node.js for OS X (x64) was 4.3.1. The instructions on this page are provided for the steps in the Node.js v4.3.1 installation wizard. The screens in the installation wizard are dependent on the version you have downloaded. If you have downloaded a different version, you might have lesser or more steps in the wizard. The instructions here are just a guideline to install the pre-requisites.
Click to download Node.js.
The Node.js package file (.pkg) is saved to the Downloads folder.Similar to Windows Explorer in Windows systems, Mac systems have the Finder application to view files and folders. You can access Finder by clicking the Finder () icon in the system dock as shown in the following screenshot:
- After opening Finder, click Downloads on the left-hand side to view the downloaded files:
- Double-click the Node.js package file.
The Node.js installation wizard appears with the Introduction window. - Click Continue. The License Agreement window appears.
- Click Continue. The Destination Select window appears.
- Click Continue. The Installation Type window appears.
- Click Install.
The installation wizard might prompt you for a password. Enter your system login password and press Enter to continue. The wizard installs Node.js. Once the installation is complete, the Summary window appears. - Click Close.
To check the version of Node.js installed, perform the following steps:
- Press Command () + Spacebar. The Spotlight Search box appears.
- Enter Terminal in the search box. Search results appear.
- Double-click Terminal from the search results. The Terminal window appears.
To check the version of Node.js installed, enter the following command:
$ node –v
The installed version of Node.js is displayed.- Continue with the Install Cordova section.