美文网首页
小技巧:nodejs快速搭建本地服务器

小技巧:nodejs快速搭建本地服务器

作者: 夏晶晶绿 | 来源:发表于2018-06-15 10:35 被阅读6次

前提是必须安装nodejs

  1. 打开cmd 输入 npm install anywhere -g 安装anywhere
  2. 成功安装anywhere后,在你的需要的项目路径,打开命令窗口cmd 中运行 anywhere 8081(端口)
  3. 浏览器就自动打开本地访问网址,或者浏览器手动输入127.0.0.1:8081访问

相关文章

网友评论

      本文标题:小技巧:nodejs快速搭建本地服务器

      本文链接:https://www.haomeiwen.com/subject/ldupeftx.html