1.环境要求
Node 10.9.0 or higher
NPM 3 or higher
Python2.7.1
C++ 编译工具
//Python下载地址
https://www.python.org/downloads/release/python-271/
python —version
//C++编译工具 windows7/Vista依赖于.NET Framework 4.5.1
//npm install —global —production windows-build-tools
//如果安装出错,可以去用户目录下的.windows-build-tools下选择安装文件双击运行
2.安装Angular-cli
npm install -g @angular/cli
ng help
ng new <项目名称>
ng serve //默认占用 4200 端口号,可以通过下面选项配置
ng serve —port 4201