Error: ENOSPC: System limit for number of file watchers reached 在使用Ubuntu进行开发时,会遇到这个错误! Error: ENOSPC: System limit for number of file watchers reached, 这个错误的意思时系统对文件监控的数量已经到达限制数量了!! 造成的结果: 执行的命令失败!或抛出警告(比如执行 react-native start 或者打开 vsocde) 解决方法: 修改系统监控文件数量 Ubuntu sudo vim /etc/sysctl.conf 添加一行在最下面 fs.inotify.max_user_watches = 524288 执行 sudo sysctl -p 参考: https://blog.csdn.net/weixin_30640291/article/details/94920800 https://www.cnblogs.com/or2-/p/10461045.html https://www.jianshu.com/p/4d2edd55b471 https://blog.csdn.net/weixin_43760383/article/details/84326032