npm solc: AssertionError [ERR_ASSERTION]: Invalid callback specified

前端 未结 10 2996
灰色年华
灰色年华 2021-02-19 07:41

I am trying to compile solidity smart contract using npm solc. I tried to follow different examples. Link to example: https://medium.com/coinmonks/how-to-compile-a-solidity-sma

10条回答
  •  逝去的感伤
    2021-02-19 07:52

    If you have see error like this.You must do following two steps.

    1. Uninstall solc:

      npm uninstall solc

    2. Reinstall one of two versions:

    The version used in the course:

    npm install --save solc@0.4.17
    

    or

    The newest version that will not break:

    npm install --save solc@0.4.25
    

    source - Udemy - Ethereum and Solidity The Complete Developer's Guide

提交回复
热议问题