1.安装node.js 和npm
目前新版的node.js 集成了npm。到node.js官网 下载安装即可
安装完成后,使用cmd(win+r然后输入cmd进入)测试下是否安装成功
node -v
npm -v
2. 安装TypeScript
npm install -g typescript
3. 安装Angular
npm install -g @angular/cli
npm i -g @angular/cli
安装完成后,使用 ng 来查看 angular的命令
Available Commands:
add Adds support for an external library to your project.
build (b) Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.
config Retrieves or sets Angular configuration values in the angular.json file for the workspace.
doc (d) Opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword