Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 655 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 655 Bytes

快速启动node server

使用系统: Mac

1. 安装

npm i -g koa-start

2. 设置环境变量

echo "export PATH=\$PATH:~/bin/" >> ~/.bash_profile
source ~/.bash_profile

3. 设置软链

rm -rf ~/bin/koa-start
ln -s /usr/local/lib/node_modules/koa-start ~/bin/koa-start

4. 启动server

koa-start [-p] [-n]

参数说明

参数 含义 默认值
-p 启用端口 8080
-n 当前目录下模板文件html index.html

持续更新中,欢迎提issue