This gist lists down the steps to create a new angular application
-
Download node from
https://nodejs.org/en/download/
in your system and then install, where npm gets installed automatically with node installation. After this to check if it is installed properly runnode -v && npm -v
in the terminal, it will tell you the node & npm version installed. -
Now install angular-cli globally by running
npm install -g @angular/cli
. The angular cli helps you to setup angular project with the bare minimum requirements so that you can onboard quickly and start with angular app development. -
Now go the directory where you want to build your project and run
ng new
for exampleng new my-app
. The Angular CLI installs the necessary npm packages, creates the project files, and populates the project with a simple default app