1.首先在控制台运行下node -v,确认环境
运行
npm install anywhere -g
来安装anywhere。
最后在控制台中cd到你的文件根目录,然后运行 anywhere 命令
2.http-server
基于npm和node环境 ,运行
npm install -g http-server
每次需要开启使用
http-server