Flow 在 Apple Silicon M1 Mac 上运行良好吗? [英] Does Flow work well on Apple Silicon M1 Macs?
本文介绍了Flow 在 Apple Silicon M1 Mac 上运行良好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我尝试的任何 React Native+Flow 项目中都遇到了共享内存不足.这是日志消息:
I'm getting this Out of shared memory on any React Native+Flow project that I try. This is the log message:
[2021-01-16 21:01:45.042] argv=/Users/hugo/Desktop/Admin MacBook/BeneTalk3/node_modules/flow-bin/flow-osx-v0.122.0/flow start --flowconfig-name .flowconfig --temp-dir /tmp/flow /Users/hugo/Desktop/Admin MacBook/BeneTalk3
[2021-01-16 21:01:45.042] lazy_mode=off
[2021-01-16 21:01:45.042] arch=classic
[2021-01-16 21:01:45.042] abstract_locations=off
[2021-01-16 21:01:45.042] max_workers=8
[2021-01-16 21:01:45.042] Failed to use anonymous memfd init
Out of shared memory:
Raised by primitive operation at file "src/heap/sharedMem.ml", line 43, characters 6-40
在英特尔 Mac 上运行良好,但似乎无法在 M1 上运行.
Works well on an intel Mac, but can't seem to get it working on the M1.
推荐答案
此解决方法目前似乎有效:
This workaround seems to work for now:
https://github.com/facebook/flow/issues/8538
[options]
sharedmemory.heap_size=3221225472
这篇关于Flow 在 Apple Silicon M1 Mac 上运行良好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文