egg


简介 阿里的

 

红色的是项目名字
egg-init --type simple First && cd  First  
egg-init --type simple Second && cd Second

hello 成功运行,也添加了一个 自定义的控制器,新请求

帮助
egg-init help

egg-init egg-example   --registry   “https://registry.npm.taobao.org” --type=simple && cd egg-example && cnpm i && npm run dev &&  open localhost:7001

成功





有异步函数

问题


egg-init  --registry  “https://registry.npm.taobao.org”
要用 --registry 参数临时设置下仓库 , 惋惜不能此设置不会被保存 , 每次执行命令都要添加这个参数


egg-init 没法建立项目
链接npm官方仓库超过5秒 , 超时了
解决方法 : 设置淘宝源









相关文章
相关标签/搜索