无法在 mac m1

时间:2021-02-17 21:19:20

标签: reactjs macos npm apple-m1

我们有一个在英特尔 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 是最新的。

1 个答案:

答案 0 :(得分:0)

我认为这里最好的解决方案是从自制软件升级/重新安装节点(这对我有帮助)。我在终端上运行了 brew upgrade node,之后它似乎运行良好。