Vercel部署失敗:退出碼1對應"npm run build"指令
P粉311423594
2023-08-15 16:28:08
<p><br /></p>
<pre class="brush:php;toolbar:false;">這是部署詳細日誌:
[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部署錯誤npm run build退出碼為1:我已嘗試將npm run build新增至建置命令中,並新增環境變數CI=false,但錯誤仍然相同。 </p>
我在Github上找到了一個類似的問題https://github.com/webpack/webpack/issues/15900。你能試一試嗎?