Flow是否可以在Apple Silicon M1 Macs上正常工作? [英] Does Flow work well on Apple Silicon M1 Macs?

查看:92
本文介绍了Flow是否可以在Apple Silicon M1 Macs上正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试的任何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

在intel 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 Macs上正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆