sudo apt-get install curl 先安装的是curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
再安装nvm install node
node -v 【查看node版本】
npm -v【查看npm版本】然后npm install -g live-server 【-g是全局安装live-server】