npm solc: AssertionError [ERR_ASSERTION]: Invalid callback specified

前端 未结 10 3001
灰色年华
灰色年华 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 08:07

    Which version of solc are you using?

    Solc released a breaking version the other day, this error is related to that.

    npm uninstall solc
    npm install solc@0.4.25
    

提交回复
热议问题