这是部署详细日志: [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
Vercel部署错误npm run build退出码为1:我已尝试将npm run build添加到构建命令中,并添加环境变量CI=false,但错误仍然相同。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
我在Github上找到了一个类似的问题https://github.com/webpack/webpack/issues/15900。你能试一试吗?
"scripts": { "start": "react-scripts --openssl-legacy-provider start", "build": "react-scripts --openssl-legacy-provider build", }