【问题标题】:React Native 应用程序的“纱线启动”失败并显示“无法启动服务器”
【发布时间】:2018-05-08 20:51:44
【问题描述】:

当我在我的 React Native 应用程序项目文件夹中执行 yarn start 时,我收到此错误:

yarn run v1.3.2
$ react-native-scripts 开始
21:58:08:无法启动服务器
有关更多信息,请参阅https://git.io/v5vcn,安装 watchman 或运行以下 sn -p:
sudo sysctl -w kern.maxfiles=5242880
sudo sysctl -w kern.maxfilesperproc=524288

错误命令失败,退出代码为 1。
info 访问https://yarnpkg.com/en/docs/cli/run 获取有关此命令的文档。

【问题讨论】:

    标签: react-native yarnpkg


    【解决方案1】:

    在我执行两个命令后 - sudo sysctl -w kern.maxfiles=5242880sudo sysctl -w kern.maxfilesperproc=524288 - 来自错误消息 yarn start 的工作正常。

    【讨论】:

      猜你喜欢
      • 2020-11-03
      • 2018-03-11
      • 2015-04-16
      • 1970-01-01
      • 1970-01-01
      • 2014-05-06
      • 1970-01-01
      • 2017-03-24
      • 2017-06-30
      相关资源
      最近更新 更多