Solve the problem of using solc to compile smart contracts in the node environment.

Reason for error: solc version is too high

1. Uninstall the original solc

npm uninstall solc

2. Install [email protected]

npm install [email protected]

3. Update solc under node

var solc = require('solc')

Guess you like

Origin blog.csdn.net/m0_47233175/article/details/121999193