利用nodeJs anywhere搭建本地服务器环境

1、npm install anywhere -g 如果是mac系统会提示你权限不够,需要在代码前加上 sudo获取管理员权限。即sudo npm install anywhere -g。

2、安装完成后就能随时随地的执行 anywhere 这个命令 来开启一个服务器。(ps:服务器的根目录就是当前cmd打开的文件夹)

 

posted @ 2018-11-05 09:17  金振宗  阅读(250)  评论(0编辑  收藏  举报