1.nodejs安装
2.环境变量设定
Path->\node-v10.16.3-win-x64
3.在cmd下输入node -v
4.在cmd下输入npm -v
5.由于angular2是基于typescript构建,所以我们必须安装typescript
npm install -g typescript typings
6.npm install -g angular-cli
7.使用 angular-cli 新建一个 AngularJs2 项目
ng new hello-world
8.使用 angular-cli 启动简易服务器来测试项目
ng server(注意:一定要在你建的项目下执行)
9.打开[http://localhost:4200](http://localhost:4200)进行访问
注意添加代理:etc/npmrc
proxy=
https-proxy=
注意:如果实在github上下载的别人的项目
下载项目并解压到你的项目目录下
cd 你项目所在的目录
npm install
npm start