安装live-server 前端服务器 安装node版本管理工具之NVM: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash 然后安装node和live-server: 注意live-server这一步要在要启动的网页所在的文件夹,启动服务器 nvm install node npm install -g live-server live-server