前提:我是用的是MAC系统,不知道使用windows系统是否也可以
react-box 项目构建
localhost:ReactDapp liyuechun$ truffle unbox react-boxStarting unbox...
=================? Preparing to download box
? Downloading
Unbox failed!
RequestError: Error: connect ECONNREFUSED 0.0.0.0:443
at new RequestError (/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/request-promise-core/lib/errors.js:14:1)
at Request.plumbing.callback (/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/request-promise-core/lib/plumbing.js:87:1)
at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/request-promise-core/lib/plumbing.js:46:1)
at self.callback (/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/request/request.js:185:1)
at Request.emit (events.js:189:13)
at Request.onRequestError (/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/request/request.js:881:1)
at ClientRequest.emit (events.js:189:13)
at TLSSocket.socketErrorListener (_http_client.js:392:9)
at TLSSocket.emit (events.js:189:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
Truffle v5.1.29 (core: 5.1.29)
Node v10.15.3
解决办法
- 打开链接 请点我 ,下载
demo
,拷贝解压文件夹里面的hosts
文件 - 打开终端,输入
open /etc
- 将
hosts
粘贴到etc
文件夹,替换掉原来的hosts
文件。
localhost:ReactDapp liyuechun$ truffle unbox react-boxStarting unbox...
=================? Preparing to download box
? Downloading
? cleaning up temporary files
? Setting up boxUnbox successful, sweet!Commands:Compile:truffle compile
Migrate:truffle migrate
Test contracts:truffle test
Test dapp:cd client && npm test
Run dev server:cd client && npm run start
Build for production: cd client && npm run build
【IPFS|执行truffle unbox react报错,出现Error: connect ECONNREFUSED 0.0.0.0:443问题的解决办法】参考链接
推荐阅读
- 推动NFT走出监管困境,BSN推出支持NFT基础设施网络
- 腾讯|SaaS的收入模型有哪些(终于有人讲明白了)
- IPFS/Filecoin官方问答(胡安AMA精华20问!你最关心的都在这!)
- 就业方向上什么才是最重要的(--- 来自程序猿的迷茫。(C++?Java?or算法?))
- 区块链中加密货币的含义
- 波场万倍潜力币HYL23号21:09分 正式上线JustSwap
- 《瀚兰房地产开发区块链应用及案例分享》BSN培训精华回顾
- 对联盟链而言,跨链协议为什么重要()
- 区块链能够应用在哪些行业
- BSN区块链服务网络中密钥托管模式和公钥上传模式有啥区别()