1. 安装 node.js
1. 下载安装
官网:https://nodejs.org/en/download/
2. 管理器命令安装
https://nodejs.org/en/download/package-manager/
yum nodejs12 (还有其他平台的安装命令)
ubuntu/Debian安装: https://github.com/nodesource/distributions/blob/master/README.md
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs
node -v
2. 安装angular
npm install -g @angular/cli
3. 创建工作空间和初始应用
ng new my-app
网友评论