Ubuntu16.04安装live-server

1:安装node.js的版本控制工具nvm,在终端中执行:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
2:关闭终端后,重新进入终端,安装node
nvm install node
3:安装live-server:
npm install live-server
4:使用live-server
在前段文件中运行
live-server

这样你的index文件就打开了
为了django项目才使用的,可以自行更换镜像源提升下载速度,不过只用这个没什么必要。python的pip就不一样了。

猜你喜欢

转载自www.cnblogs.com/Sksitigarbha/p/9346175.html