1.使用curl或wget安装nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh|bash
or
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh|bash
2.使用nvm install [node版本号]
nvm install v10.13.0
3.安装angular cli
sudo npm install -g @angular/cli
检查是否安装成功
ng -v