【问题标题】:Does Flow work well on Apple Silicon M1 Macs?Flow 在 Apple Silicon M1 Mac 上运行良好吗?
【发布时间】:2021-01-16 21:09:53
【问题描述】:

在我尝试的任何 React Native+Flow 项目中,我都遇到了 Out of shared memory。这是日志消息:

[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 上运行。

【问题讨论】:

    标签: react-native shared-memory flowtype apple-m1


    【解决方案1】:

    这个解决方法现在似乎有效:

    https://github.com/facebook/flow/issues/8538

    [options]
    sharedmemory.heap_size=3221225472
    

    【讨论】:

      猜你喜欢
      • 2021-05-08
      • 2021-03-02
      • 2022-01-06
      • 1970-01-01
      • 2021-06-04
      • 2021-08-04
      • 2021-05-11
      • 2021-03-11
      • 2021-10-22
      相关资源
      最近更新 更多