美文网首页
2020-01-14 dapp开发环境搭建

2020-01-14 dapp开发环境搭建

作者: oracle3 | 来源:发表于2020-01-14 16:21 被阅读0次

    由于solidity版本不断变化,我们需要指定版本安装,否则很多旧程序各种错误,如果已经安装了其他版本需要卸载

    npm uninstall -g solc
    npm install -g solc@0.4.24
    npm uninstall web3
    npm install web3@0.20.4
    npm install -g ganache-cli@6.1.8
    npm uninstall -g truffle
    npm install -g truffle@4.1.15
    npm install -g bower
    bower install web3#0.20.6
    bower install jquery
    

    如果bower需要配置代理,则需要新建文件C:\Users\elikong.bowerrc
    输入内容:

    {
      "directory": "bower_components", 
      "proxy": "http://yourProxy:yourPort",
      "https-proxy":"http://yourProxy:yourPort",
      "no-proxy":"myserver.mydomain.com"
    }
    

    在代理下truffle init出错,则需要:

    git clone https://github.com/trufflesuite/truffle-init-default SimpleCoin
    cd SimpleCoin
    rmdir /s/q .git
    

    相关文章

      网友评论

          本文标题:2020-01-14 dapp开发环境搭建

          本文链接:https://www.haomeiwen.com/subject/sfnoactx.html