ste*_*fan 6 react-native yarnpkg
当我在我的React Native应用程序项目文件夹中执行yarn start时出现此错误:
yarn run v1.3.2
$ react-native-scripts start
21:58:08:无法启动服务器
有关更多信息,请参阅https://git.io/v5vcn,安装watchman或运行以下代码片段:
sudo sysctl -w kern .maxfiles = 5242880
sudo sysctl -w kern.maxfilesperproc = 524288错误命令失败,退出代码为1.
info 有关此命令的文档,请访问https://yarnpkg.com/en/docs/cli/run.
在我执行了两个命令之后 - sudo sysctl -w kern.maxfiles=5242880
和sudo sysctl -w kern.maxfilesperproc=524288
- 从错误消息yarn start
工作喜欢预期.