TypeError: You must specify a "protocol" for the proxy type (http, https, socks, socks4, socks4a, socks5, socks5h, pac+data, pac+file, pac+ftp, pac+http, pac+https)
at mapOptsToProxy (C:\Users\root\AppData\Roaming\npm\node_modules\egg-init\[email protected]@proxy-agent\index.js:100:11)
at new ProxyAgent (C:\Users\root\AppData\Roaming\npm\node_modules\egg-init\[email protected]@proxy-agent\index.js:150:17)
at Command.run (C:\Users\root\AppData\Roaming\npm\node_modules\egg-init\lib\init_command.js:51:26)
at run.next (
at onFulfilled (C:\Users\root\AppData\Roaming\npm\node_modules\egg-init\[email protected]@co\index.js:65:19)
at C:\Users\root\AppData\Roaming\npm\node_modules\egg-init\[email protected]@co\index.js:54:5
at new Promise (
at co (C:\Users\root\AppData\Roaming\npm\node_modules\egg-init\[email protected]@co\index.js:50:10)
at toPromise (C:\Users\root\AppData\Roaming\npm\node_modules\egg-init\[email protected]@co\index.js:118:63)
at next (C:\Users\root\AppData\Roaming\npm\node_modules\egg-init\[email protected]@co\index.js:99:29)
你翻墙了吧,环境变量不对
我也是 无法创建啊

然后就没有然后了··
你翻墙了吧,环境变量不对
没翻墙 还是家用网络 怎么搞定 如果环境变量不对 我现在该怎么办
你翻墙了吧,环境变量不对
没翻墙 还是家用网络 怎么搞定 如果环境变量不对 我现在该怎么办
没有翻墙的 我是在腾讯云的云服务器上也是这样 是新开的服务器 如果输入egg-init test 也是直接卡住
一样,也是在 home.test.js这一行卡住
是这样的,这个Bug这么明显,到现在还没有解决
用win10基本上就会出现这个问题,CTRL+c结束就好了
用ubuntu-16.04没有这个问题
感谢 @yangshuhappy1 的反馈。我们几个人手头都没 win 没法跟进。
之前的打算是 egg-init 会完全重构,所以暂时 hold。
感谢 @yangshuhappy1 的反馈。我们几个人手头都没 win 没法跟进。
之前的打算是 egg-init 会完全重构,所以暂时 hold。
怎么2019了还存在这个问题,执行这行egg-init egg-example --type=simple在window上直接卡住,刚想上手就发现这个问题,对这个框架印象大打折扣
然后就没有然后了··
请问解决了吗
@yangshuhappy1 我在 win10 1809 上用 cmd 或者 powershell 都可以正常使用 egg-init 创建,你的系统是 win10 的哪一个版本呢?

相同的问题
修复版本已经发布,更新 egg-init 到 1.15.1 再试一下
mac 版本 [email protected] 依然卡住....