Angular installation

前端 未结 9 1108
傲寒
傲寒 2021-02-06 13:55

I want to install Angular version 4.* on my windows 7.
I am currently using Angular version 1.6.*

I tried following command

npm install @angular/{com         


        
9条回答
  •  面向向阳花
    2021-02-06 14:38

    For installing Angular 4 follow below simple steps:

    1. Install node.js and npm(they are required dependencies. npm is automatically installed on installing node.js). You can install it from here
    2. With the help of npm install angular CLI. Type the following command in your command prompt: npm install -g @angular/cli
    3. If you are still facing some problems you have to install git. You can install it from here
    4. Now to create an angular 4 project using Angular CLI type the following command: ng new [Project_Name] This will create an Angualr 4 project. 5.To start the server and get your project up and running type following in command line: ng serve

    Remember you should be inside the project folder before starting the server. Hope this helps.

提交回复
热议问题