node:anywhere在任何地方运行静态文件服务器。随时随地将您的当前目录变成静态文件服务器的根目录。通过npm-g.npminstallanywhere-grun$anywhere//或使用端口$anywhere-p8000//将其作为命令行工具安装,或者启动它但静默(不要打开浏览器)$anywhere-s//或使用主机名$anywhere-hlocalhost-p8888//或使用folder$anywhere-d~/git/anywhere//或启用html5历史记录$anywhere-f/index.html查看帮助$anywhere--helpUsage:anywhere--help//在任何地方打印帮助信息//8000作为默认端口,当前文件夹作为根目录在任何地方8888//8888作为端口在任何地方-p8989//8989作为端口在任何地方-s//不要在任何地方打开浏览器-hlocalhost//localhostashostnameanywhere-d/home///homeasrootanywhere-f/index.html//启用html5历史,索引为/index.html访问方式http://localhost:8000执行命令后,通过浏览default浏览器会自动为你打开主页。参考资料:任何地方
