快速搭建本地服务器

1.首先在控制台运行下node -v,确认环境

 

运行

npm install anywhere -g

来安装anywhere。

最后在控制台中cd到你的文件根目录,然后运行   anywhere  命令

 

2.http-server

基于npm和node环境 ,运行

npm install -g http-server 

 每次需要开启使用

http-server 

  

posted @ 2021-03-05 09:49  淮生  阅读(203)  评论(0编辑  收藏  举报