[英]NPM run build failed to compile - cannot get to build reactjs project
[英]cannot run “npm run build” for a react project on mac m1
我們有一個反應項目,可以在英特爾 mac 上毫無問題地構建。 但是在 mac m1 上,該項目不想構建
這是npm run build
的唯一響應
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.
npm ERR! code 1
npm ERR! path /Users/.../projects/app
npm ERR! command failed
npm ERR! command sh -c react-scripts build
安裝了節點 v15.8.0 以及 npm v7.5.0。 node_modules 是最新的。
我認為這里最好的解決方案是從自制軟件升級/重新安裝節點(這對我有幫助)。 我在終端上運行了brew upgrade node
,之后它似乎工作正常。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.