Angular2 environment to build

1.nodejs installation
 
2. environment variable settings
  Path->\node-v10.16.3-win-x64
 
3. Enter cmd at node -v
 
4. Enter npm -v under cmd
 
5. As angular2 is based on the typescript to build, so we have to install typescript
  npm install -g typescript typings
 
6.npm install -g angular-cli
 
7. Use the angular-cli project to create a new AngularJs2
  new hello-world
 
8. Use the angular-cli start simple server to test projects
  ng server (Note: Be sure to perform at your construction project)
 
9. Open [http: // localhost: 4200] (http: // localhost: 4200) to access
 
Note Add Agent: etc / npmrc
    proxy=
    https-proxy=
 
Note: If you can not download the others on github project
Download and unzip the project under your project directory
Cd directory where your project
npm install
Elevation start

Guess you like

Origin www.cnblogs.com/wzhw2015/p/12318256.html