search

Home  >  Q&A  >  body text

Vercel deployment failed: Exit code 1 corresponds to the "npm run build" command

<p><br /></p> <pre class="brush:php;toolbar:false;">This is the deployment detailed log: [15:19:45.948] throw err; [15:19:45.948] ^ [15:19:45.948] [15:19:45.948] Error: error:0308010C:digital envelope routines::unsupported [15:19:45.948] opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], [15:19:45.948] library: 'digital envelope routines', [15:19:45.948] reason: 'unsupported', [15:19:45.948] code: 'ERR_OSSL_EVP_UNSUPPORTED' [15:19:45.948] } [15:19:45.948] [15:19:45.948] Node.js v18.16.1 [15:19:45.972] Error: Command "npm run build" exited with 1</pre> <p>Vercel deployment error npm run build exit code 1: I have tried adding npm run build to the build command and adding the environment variable CI=false but the error remains the same. </p>
P粉311423594P粉311423594471 days ago623

reply all(1)I'll reply

  • P粉768045522

    P粉7680455222023-08-16 12:54:03

    I found a similar issue on Github https://github.com/webpack/webpack/issues/15900. Can you give it a try?

    "scripts": {
      "start": "react-scripts --openssl-legacy-provider start",
      "build": "react-scripts --openssl-legacy-provider build",
    }

    reply
    0
  • Cancelreply