Tuesday 4 July 2017

Angular2 - Environment

Angular2 - Environment


To start working with Angular 2, you need to get the following key components installed.
  • Npm − This is known as the node package manager that is used to work with the open source repositories. Angular JS as a framework has dependencies on other components. And npm can be used to download these dependencies and attach them to your project.
  • Git − This is the source code software that can be used to get the sample application from the github angular site.
  • Editor − There are many editors that can be used for Angular JS development such as Visual Studio code and WebStorm. In our tutorial, we will use Visual Studio code which comes free of cost from Microsoft.

npm Installation

Let’s now look at the steps to get npm installed. The official site for npm ishttps://www.npmjs.com/

Step 1 − Go to the “get stated with npm” section in the site.

Step 2 − In the next screen, choose the installer to download, depending on the operating system. For the purpose of this exercise, download the Windows 64 bit version.

Step 3 − Launch the installer. In the initial screen, click the Next button.

Step 4 − In the next screen, Accept the license agreement and click the next button.

Step 5 − In the next screen, choose the destination folder for the installation and click the Next button.

Step 6 − Choose the components in the next screen and click the Next button. You can accept all the components for the default installation.

Step 7 − In the next screen, click the Install button.

Step 8 − Once the installation is complete, click the Finish button.

Step 9 − To confirm the installation, in the command prompt you can issue the command npm version. You will get the version number of npm as shown in the following screenshot.


0 comments:

Post a Comment