我们有一个在英特尔mac上构建的react项目,没有任何问题。但是,在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
安装了node v15.8.0和npm v7.5.0。node_modules是最新的。
发布于 2021-04-05 06:06:25
我认为最好的解决方案是从homebrew升级/重新安装节点(这对我很有帮助)。我在终端上运行了brew upgrade node
,在那之后它似乎工作得很好。
https://stackoverflow.com/questions/66250114
复制相似问题