Step 1. 安装node
建议使用nvm安装
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
Step 2. 使用n安装lts版nodejs
node版本管理神器 n
# 需要roo权限sudo npm i -g nsudo n lts
Step 3. 安装 yarn
npm i -g yarn
Step 4. 安装 @angular/cli
npm i -g @angular/cli@6.0.0
Step 5. 创建angular项目
添加css预处理器scss angular cli css preprocessor
ng new angular6-demo --style=scss
Step 6. 运行angular
cd angular6-demoyarn start
Options
# git flowbrew install git-flow# git msg checknpm i -g commitizen
