Vercel deployment failed: Exit code 1 corresponds to the "npm run build" command
P粉311423594
P粉311423594 2023-08-15 16:28:08
0
1
606
<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粉311423594
P粉311423594

reply all(1)
P粉768045522

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",
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template