1.安装node版本管理工具
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh|bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
2.安装node.js
nvm install 8.11.1
3.安装bower
npm install -g bower
4.安装Webpack
npm install webpack -g