Uniswap / deploy-v3

CLI to deploy Uniswap V3 to any Ethereum compatible network
GNU General Public License v3.0
112 stars 120 forks source link

Errors with Node version >16 #11

Open dghelm opened 1 year ago

dghelm commented 1 year ago

When running the script on Node versions 17 or 19, I get the following error on macOS:

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:140:10)
    at hashOf (/Users/user/dev/3rdPartyContractsDeploy/uniswap-v3/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:37:1890023)
    at ncc (/Users/user/dev/3rdPartyContractsDeploy/uniswap-v3/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:37:1894690)
    at runCmd (/Users/user/dev/3rdPartyContractsDeploy/uniswap-v3/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:52268)
    at 819 (/Users/user/dev/3rdPartyContractsDeploy/uniswap-v3/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:48838)
    at __webpack_require__ (/Users/user/dev/3rdPartyContractsDeploy/uniswap-v3/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:59076)
    at /Users/user/dev/3rdPartyContractsDeploy/uniswap-v3/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:59288
    at /Users/user/dev/3rdPartyContractsDeploy/uniswap-v3/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:59349
    at Object.<anonymous> (/Users/user/dev/3rdPartyContractsDeploy/uniswap-v3/node_modules/@vercel/ncc/dist/ncc/cli.js:8:28) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
error Command failed with exit code 1.

More discussion of this error.

Fixes:

inmarelibero commented 7 months ago

I confirm this