Download Angular Cli On Mac

Angular CLI A command line interface for Angular Get Started ng new. The Angular CLI makes it easy to create an application that already works, right out of the box. Jul 08, 2019.

  • Angular CLI Tutorial
  • Angular CLI Commands
  • Angular CLI Useful Resources
  • Selected Reading

To work with Angular CLI, we need to have Node installed on our system.

Download angular cli on mac high sierraCli

Download Node.js archive

Download latest version of Node.js installable archive file from Node.js Downloads. At the time of writing this tutorial, following are the versions available on different OS.

OSArchive name
Windowsnode-v6.3.1-x64.msi
Linuxnode-v6.3.1-linux-x86.tar.gz
Macnode-v6.3.1-darwin-x86.tar.gz
SunOSnode-v6.3.1-sunos-x86.tar.gz

Installation on UNIX/Linux/Mac OS X, and SunOS

Based on your OS architecture, download and extract the archive node-v6.3.1-osname.tar.gz into /tmp, and then finally move extracted files into /usr/local/nodejs directory. For example:

What Is Angular Cli

Add /usr/local/nodejs/bin to the PATH environment variable.

OSOutput
Linuxexport PATH=$PATH:/usr/local/nodejs/bin
Macexport PATH=$PATH:/usr/local/nodejs/bin
FreeBSDexport PATH=$PATH:/usr/local/nodejs/bin

Installation on Windows

Use the MSI file and follow the prompts to install the Node.js. By default, the installer uses the Node.js distribution in C:Program Filesnodejs. The installer should set the C:Program Filesnodejsbin directory in window's PATH environment variable. Restart any open command prompts for the change to take effect.

Mac

Verify installation: Executing a File

Create a js file named main.js on your machine (Windows or Linux) having the following code.

Install Angular Cli Mac

Now execute main.js file using Node.js interpreter to see the result −

If everything is fine with your installation, this should produce the following result −

Now Node is installed, run the following command to install Angular CLI.

Let us use the following command for the same −

Verify the installation

Now run the following command to see the result −

If everything is fine with your installation, this should produce the following result −

Download Angular Cli For Windows

On Windows, in case of ng being not recognized as internal or external command, update the system path variable to include the following path.

Comments are closed.