Web 应用程序编译但当我重新加载网站时,编译以错误结束。
只需键入gatsby develop
,例如,如果您单击一篇文章或重新加载 (ctrl + r),则网站编译将结束。
回购:你去吧。
gatsby develop
应该可以工作。
success open and validate gatsby-configs — 0.015 s
success load plugins — 0.382 s
success onPreInit — 0.606 s
success delete html and css files from previous builds — 0.133 s
success initialize cache — 0.013 s
success copy gatsby files — 0.052 s
success onPreBootstrap — 0.006 s
success source and transform nodes — 0.164 s
success building schema — 0.393 s
success createPages — 0.086 s
success createPagesStatefully — 0.072 s
success onPreExtractQueries — 0.006 s
success update schema — 0.224 s
success extract queries from components — 0.216 s
success run graphql queries — 0.164 s — 14/14 88.14 queries/second
success write out page data — 0.004 s
success write out redirect data — 0.001 s
⢀ onPostBootstrapdone generating icons for manifest
success onPostBootstrap — 0.274 s
info bootstrap finished - 4.655 s
DONE Compiled successfully in 1926ms 1:43:58 AM
You can now view abcrypto in the browser.
http://localhost:8000/
View GraphiQL, an in-browser IDE, to explore your site's data and schema
http://localhost:8000/___graphql
Note that the development build is not optimized.
To create a production build, use gatsby build
ℹ 「wdm」:
ℹ 「wdm」: Compiled successfully.
error UNHANDLED EXCEPTION
Error: ENOSPC: System limit for number of file watchers reached, watch '/home/foldername/abcrypto/static'
- watchers.js:165 FSWatcher.start
internal/fs/watchers.js:165:26
- nodefs-handler.js:37 createFsWatchInstance
[abcrypto]/[chokidar]/lib/nodefs-handler.js:37:15
- nodefs-handler.js:80 setFsWatchListener
[abcrypto]/[chokidar]/lib/nodefs-handler.js:80:15
- nodefs-handler.js:232 FSWatcher.NodeFsHandler._watchWithNodeFs
[abcrypto]/[chokidar]/lib/nodefs-handler.js:232:14
- nodefs-handler.js:414 FSWatcher.NodeFsHandler._handleDir
[abcrypto]/[chokidar]/lib/nodefs-handler.js:414:19
- nodefs-handler.js:462 FSWatcher.<anonymous>
[abcrypto]/[chokidar]/lib/nodefs-handler.js:462:19
- nodefs-handler.js:467 FSWatcher.<anonymous>
[abcrypto]/[chokidar]/lib/nodefs-handler.js:467:16
System:
OS: Linux 4.20 Fedora 29 (Workstation Edition) 29 (Workstation Edition)
CPU: (4) x64 Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
Shell: 4.4.23 - /bin/bash
Binaries:
Node: 11.3.0 - ~/.nvm/versions/node/v11.3.0/bin/node
Yarn: 1.12.3 - /var/lib/snapd/snap/bin/yarn
npm: 6.7.0 - ~/.nvm/versions/node/v11.3.0/bin/npm
Languages:
Python: 2.7.15 - /usr/bin/python
Browsers:
Firefox: 64.0.2
npmPackages:
gatsby: ^2.0.104 => 2.0.104
gatsby-cli: ^2.4.8 => 2.4.8
gatsby-image: ^2.0.29 => 2.0.29
gatsby-plugin-catch-links: ^2.0.9 => 2.0.9
gatsby-plugin-feed: ^2.0.12 => 2.0.12
gatsby-plugin-google-analytics: ^2.0.12 => 2.0.12
gatsby-plugin-manifest: ^2.0.14 => 2.0.14
gatsby-plugin-offline: ^2.0.22 => 2.0.22
gatsby-plugin-react-helmet: ^3.0.0 => 3.0.5
gatsby-plugin-sharp: ^2.0.18 => 2.0.18
gatsby-plugin-typography: ^2.2.6 => 2.2.6
gatsby-remark-copy-linked-files: ^2.0.5 => 2.0.8
gatsby-remark-images: ^2.0.4 => 2.0.6
gatsby-remark-prismjs: ^3.2.3 => 3.2.3
gatsby-remark-responsive-iframe: ^2.0.5 => 2.0.8
gatsby-remark-smartypants: ^2.0.5 => 2.0.7
gatsby-source-filesystem: ^2.0.18 => 2.0.18
gatsby-transformer-remark: ^2.2.2 => 2.2.2
gatsby-transformer-sharp: ^2.1.12 => 2.1.12
npmGlobalPackages:
gatsby-cli: 2.4.8
gatsby: 2.0.98
它达到了您系统的文件观察者限制
试试echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
好的,我重新启动了计算机,现在一切正常。
我是这样解决的
https://code.visualstudio.com/docs/setup/linux
“Visual Studio Code 无法观察这个大工作区中的文件更改”(错误 ENOSPC)#
cat /proc/sys/fs/inotify/max_user_watches
fs.inotify.max_user_watches=524288
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
非常感谢您!!!
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
工作过
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
它拯救了我的一天
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
我在 react-app 中运行了这行代码,一切又恢复正常了,谢谢!!
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
谢谢。 这真的很有帮助
echo fs.inotify.max_user_watches=524288 | 须藤 tee -a /etc/sysctl.conf && 须藤 sysctl -p
谢谢你,你是英雄
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
给我错误:
sysctl: illegal option -- p
在 MacOS 上使用
以 root 身份为您的应用程序提供服务......它的工作!
以 root 身份为您的应用程序提供服务......它的工作!
你能解释一下吗?
在您的应用程序文件夹中运行 sudo npm run serve 或运行以下命令:
Nooooooooo 不要以 root 身份运行您的应用程序! 💀 🚨 那会导致各种安全问题!
如果我部署到 netlify 并在 netlify 尝试构建应用程序时遇到该错误怎么办? 本地没问题
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
工作过
是的,它正在工作
我在 Netlify 上收到此错误。
谁知道怎么修它?
我今天也得到了它并做了一个“清除缓存并重新部署”并且它起作用了。
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
工作过
也工作了。 谢谢
它达到了您系统的文件观察者限制
试试 echo fs.inotify.max_user_watches=524288 | 须藤 tee -a /etc/sysctl.conf && 须藤 sysctl -p
重新打开这个,因为它看起来上面是一个流行的答案,并且这个问题足够普遍,需要更好的资源/警告
我们现在应该做两件事:
@sidharthachatterjee你
@sidharthachatterjee ,这是拍的吗? 如果没有,我可以接受,但绝对需要你的帮助。 :D
@eduarmreyes这是一个很好的问题! 也许链接到https://www.gatsbyjs.org/docs/debugging/的新页面
@KirankumarAmbati如果@eduarmreyes正在处理文档,您可以尝试列表中的第二点! 乐于助人🙂
我目前正在研究这个。 @sidharthachatterjee我无法分配或添加标签。 谢谢你的帮助!
我仍然偶尔在 Netlify 上使用gatsby build
得到这个,即使我的项目相当小。 很难调试,因为它不会每次都发生。 清除缓存并重新部署将修复它,而且,通常只需正常重新部署即可。
在 netlify 构建期间没有sudo
访问权限,因此更改系统限制不是一个选项。 此外,手动重新部署并不是真正的“解决方案”——我有客户网站在 CMS 更改后重建,我不想在发生这种情况时“随时待命”点击“重新部署+清除缓存”按钮.
有没有办法查看和/或限制正在观看的文件? 我不太了解 Gatsby 是如何在幕后工作的,但是,假设 gatsby 监视文件以便在开发时重新构建,那么gatsby build
真的需要首先监视任何东西吗?
这对我来说很好用!
非常感谢 !
我在 Gatsby 2.13.73 中仍然遇到这个问题,正如@good-idea 所写,手动重新部署不是一个可行的长期解决方案,尤其是在为使用 CMS 的客户制作网站时。
为什么在构建生产时甚至需要“监视”文件?
8:10:54 AM: error watch /opt/build/repo/gatsby-config.js ENOSPC
8:10:54 AM: UNHANDLED EXCEPTION watch /opt/build/repo/gatsby-config.js ENOSPC
8:10:54 AM: See our docs page for more info on this error: https://gatsby.dev/issue-how-to
8:10:54 AM:
8:10:54 AM: Error: watch /opt/build/repo/gatsby-config.js ENOSPC
8:10:54 AM:
8:10:54 AM: - nodefs-handler.js:38 createFsWatchInstance
8:10:54 AM: [repo]/[chokidar]/lib/nodefs-handler.js:38:15
8:10:54 AM:
8:10:54 AM: - nodefs-handler.js:81 setFsWatchListener
8:10:54 AM: [repo]/[chokidar]/lib/nodefs-handler.js:81:15
8:10:54 AM:
8:10:54 AM: - nodefs-handler.js:233 FSWatcher.NodeFsHandler._watchWithNodeFs
8:10:54 AM: [repo]/[chokidar]/lib/nodefs-handler.js:233:14
8:10:54 AM:
8:10:54 AM: - nodefs-handler.js:262 FSWatcher.NodeFsHandler._handleFile
8:10:54 AM: [repo]/[chokidar]/lib/nodefs-handler.js:262:21
8:10:54 AM:
8:10:54 AM: - nodefs-handler.js:495 FSWatcher.<anonymous>
8:10:54 AM: [repo]/[chokidar]/lib/nodefs-handler.js:495:21
8:10:54 AM:
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
谢啦! 它节省了我的时间:raised_hands:
它仍然发生......使用快速入门指南:眼睛:
请注意, @pieh回答了“为什么在构建生产时需要监视文件?”的问题。 在 #15843 结束:
因为用于 globbing + 观看的包(
chokidar
)无法禁用观看。 我们正在寻找替代方案,但实际上没有一个可以禁用观看。 我们可以使用不同的包进行构建(所以只有通配,没有观察)和开发(通配 + 观察)——但这可能会导致构建和开发之间的差异
看起来这个问题应该首先用 chokidar 添加一个 watch 选项,然后为 Gatsby 创建一个后续问题来实现 watch 选项。
太感谢了!! 它对我有用:D
此外,chokidar 不会添加禁用监视的选项,因为它实际上是一个文件监视程序。 我能想到的唯一可能的解决方案是让 Gatsby 切换到不同的库来遍历允许监视和非监视选项的目录。
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
Dang Sid 打我一拳,我想说这与(我假设您在 linux 上)有关 linux 如何有文件观察器的默认设置,只需在终端中运行该命令即可轻松解决,或者您可以去这里https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc
在 VS Code 网站上,他们有一整节教你如何解决这个问题
嗨!
这个问题已经沉寂了。 诡异的安静。 👻
我们遇到了很多问题,因此我们目前在 30 天不活动后关闭问题。 距离上次更新已经过去了至少 20 天。
如果我们错过了这个问题,或者如果您想保持打开状态,请在此处回复。 您还可以添加标签“not stale”以保持此问题的开放性!
友情提示:查看此问题或任何其他问题的最佳方法是打开一个拉取请求。 查看gatsby.dev/contribute以获取有关打开 PR、分类问题和贡献的更多信息!
感谢您成为 Gatsby 社区的一员! 💪💜
你好! 关于这个问题的任何更新? 我在 Jenkins 中构建我的 gatsby 站点时偶尔会遇到这种情况。 我无权在我的 Jenkins 构建环境中修改 inotify max_user_watches。
又见面了!
这个问题已经过去 30 天了,所以我们友好的邻居机器人(就是我!)将关闭它。
请记住,我只是一个机器人,所以如果我错误地关闭了这个问题,我是HUMAN_EMOTION_SORRY
。 如果您需要其他任何内容,请随时重新打开此问题或创建一个新问题。
友情提示:查看此问题或任何其他问题的最佳方法是打开一个拉取请求。 查看gatsby.dev/contribute以获取有关打开 PR、分类问题和贡献的更多信息!
再次感谢您成为 Gatsby 社区的一员!
@ethannkschneider我也在限制性的 Jenkins 环境中构建时遇到了这个问题。 使用CHOKIDAR_USEPOLLING=1
可以避免达到我的观看限制。
以下是最佳解决方案。
打命令 - echo fs.inotify.max_user_watches=524288 | 须藤 tee -a /etc/sysctl.conf && 须藤 sysctl -p
删除反应 node_modules
rm -r node_modules
yarn or npm install
yarn start or npm start
如果发生错误,请再次使用此方法
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
太棒了!!!
@cedricdelpoux你解决了这个错误吗?
给我错误:
sysctl: illegal option -- p
在 MacOS 上使用
遇到了同样的问题:
解决方法:增加用户。
echo fs.inotify.max_user_watches=524288 |
echo fs.inotify.max_user_watches=524288 | 须藤 tee -a /etc/sysctl.conf && 须藤 sysctl -p
是工作!!
@irokhes sysctl -p
用于在 Linux 上从/etc/sysctl.conf
重新加载更改的配置。 您必须了解如何在 Mac 上更改sysctl.conf
(可能位于其他地方)。 然后您可以更改fs.inotify.max_user_watches
-property(如果它在 Mac 上被称为相同)。
我只需要关闭 Visual Studio Code 就解决了这个问题。
如果您对技术细节不感兴趣,只想听听工作:
如果您运行的是Debian、RedHat 或其他类似的 Linux 发行版,请在终端中运行以下命令:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
如果您正在运行ArchLinux ,请改为运行以下命令(请参阅此处了解原因):
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
然后将其粘贴到您的终端中并按回车键运行它。
_更多信息: https : //github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers_
好的,我重新启动了计算机,现在一切正常。
谢谢! 这是计算机说“重新启动我”的方式
这也发生在 Travis 中,我认为问题的症结在于它正在观看/static
。 即使它必须在build
模式下运行chokidar
,如果我们可以传递监视忽略模式,我们就可以忽略像static
这样的文件夹。 除非这样做会阻止它复制到构建? 🤔 使用CHOKIDAR_USEPOLLING=1
似乎有帮助。
我按照“修复”将最大观察者设置为 524288,重新启动,但都没有解决问题。 我确定它有帮助,但我仍然遇到这个问题。
我使用以下方法添加了环境变量:
export CHOKIDAR_USEPOLLING=1
这有帮助。 我能够在我的网站上运行gatsby develop
。
这就是我在上一篇文章中的意思。 我试过了确切的命令,它没有工作。 我正在运行 Ubuntu 18.04。 但是,运行该命令,重新启动,然后更改CHOKIDAR_USEPOLLING
环境变量有效。
我也是。
/etc/sysctl.conf中的fs.inotify.max_user_watches=524288
和command的组合
CHOKIDAR_USEPOLLING=1 node --max_old_space_size=4096 ./node_modules/.bin/gatsby develop -S
工作,但不是一直有效,有时需要重新启动计算机。
所以这个问题还没有解决。
操作系统: macOS Catalina 10.15.4
CPU: Intel i7-4750HQ (8) @ 2.00GHz
内存: 8192MiB
Gatsby CLI 版本: 2.11.5
盖茨比版本: 2.20.12
节点: v13.12.0
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
拯救我的一天,谢谢!!
webpack watcher 不应该增加 max_user_watches,而不是在 node_modules 中观看 100 万个文件!
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
谢谢,
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
这对我有用
您已达到系统上文件观察者的限制
试试echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情非常感谢!!!
谢谢,解决了
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
谢谢:微笑:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
工作过
谢谢这适用于 Ubuntu 18.04 LTS
出口 CHOKIDAR_USEPOLLING = 1
工作。
请只对适合您的解决方案添加反应,而不是发表新的评论,只说“对我有用”。
Try
echo fs.inotify.max_user_watches=524288 | 须藤 tee -a /etc/sysctl.conf && 须藤 sysctl -p``
太感谢了!!!
如果有人对数字和开销感到好奇,我最终会仔细研究一下,而不是仅仅在网上复制看起来像随机数的东西,并希望得到最好的结果:P
这里提到的524288
以及guard/listen
wiki 中的其他一些地方(似乎是原始来源?),是 2^19(指数,如 2x2x2x2..19 次),其中每个手表(仅在实际使用时)需要 1,080 字节的内存,这意味着如果您设法使用所有这些,您将使用 540MiB 的 RAM,仅用于文件观察者。
还有这个方便的脚本,它可以告诉您所有观察者当前分配到的位置。 就我而言,我一直在使用max_user_watches
2^16 (65536) 和两个电子进程(VS Code),每个活动有 24-28k 个手表,其他几个每个有几千个,还有一些小手表用于其他一切。
@x0xl0ma以后只需在对您有帮助的评论中添加一个 :+1: ,如果您的评论由于感谢 (:tada:) 或重复确认而没有为他人提供任何价值,它只会增加其他人的噪音趟过(请注意,Github 在此线程上隐藏了 30 多条评论作为优化,这可以隐藏在“感谢”和“作品”的海洋中可能会遗漏的好的/有用的信息。
@omrllm
好的,我重新启动了计算机,现在一切正常。
实际上当你
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
您不必重新启动计算机,因为sudo sysctl -p
重新加载并将系统参数应用于当前系统
错误:ENOSPC:达到文件观察者数量的系统限制,
我有这个问题
试过
echo fs.inotify.max_user_watches=524288 | 须藤 tee -a /etc/sysctl.conf && 须藤 sysctl -p
但对我不起作用。
错误:ENOSPC:已达到文件观察者数量的系统限制
当我下次启动我的 React 应用程序时,我正面临这个问题
请尝试使用以下代码:-(在您的终端中)
echo fs.inotify.max_user_watches=524288 | 须藤 tee -a /etc/sysctl.conf && 须藤 sysctl -p
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
工作过
谢谢楼主,成功了。 如此精确。
vscode的替代解决方案:
除了增加限制,您还可以将public
和.cache
文件夹添加到files.watcherExclude
"files.watcherExclude": {
"**/public/**": true,
"**/.cache/**": true
}
或者
通过https://code.visualstudio.com/docs/setup/linux#_visual -studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc
它达到了您系统的文件观察者限制
试试echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情非常感谢您!!!
感谢您提供我们应该寻找的正确问题!!!
ENOSPC = Erro NO Seu PC
@Victorcorcos
与其让 Webpack 观看 node_modules 中的 50 万个文件(你永远不会改变),你可以告诉它忽略某些目录,比如 node_modules: https ://webpack.js.org/configuration/watch/#watchoptionsignored
echo fs.inotify.max_user_watches=524288 | 须藤 tee -a /etc/sysctl.conf && 须藤 sysctl -p
为我工作! 谢谢! :D
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
坦克!!!
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
谢谢你非常匹配:),为什么这个设置默认的文件观察者数量很少? 嗯
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
谢谢!!
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
辛苦了,谢谢!!!
是的,也与原子有关.. 当原子在我的 gatsby 目录中打开时.. 挂在文件上
关闭原子.. 所有coolio
您已达到系统上文件观察者的限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
它解决的问题比我预期的要多得多!
在ubuntu中,您可以执行以下步骤
添加行
保存文件。
这应该有效
谢谢
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情
谢天谢地,莱恩达,泰坦!
那是 :-)
约翰·D·艾伦。
电话 +1 417 849 0705 * CST | 约翰。 [email protected]
[email protected] | https://www.leveridgesystems.com
https://www.leveridgesystems.com | linkedin.com/in/johndallen1
http://linkedin.com/in/johndallen1 | Skype john.allen_67 *
Leveridge Systems INC. Reg Missouri Charter #01082460。 信息
此电子邮件中包含的任何附加文件都是机密的并且是有意的
仅供收件人使用。 该电子邮件可能具有法律特权或
禁止披露和未经授权的使用。 如果你不是
指定的收件人,您不得使用、复制或向任何人披露此信息
别人。 如果您错误地收到此消息,请通知
发件人立即从您的系统中永久删除它。
在周六,二○二○年十二月一十二日在下午七时18分xlegolaz [email protected]写道:
它达到了您系统的文件观察者限制
试试 echo fs.inotify.max_user_watches=524288 | 须藤 tee -a
/etc/sysctl.conf && sudo sysctl -p阅读更多关于正在发生的事情
https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details谢天谢地,莱恩达,泰坦!
—
您收到此消息是因为您发表了评论。
直接回复本邮件,在GitHub上查看
https://github.com/gatsbyjs/gatsby/issues/11406#issuecomment-743930745 ,
或取消订阅
https://github.com/notifications/unsubscribe-auth/ADGDUXOKITKKDGQWZ4SNFQ3SUQI7HANCNFSM4GTE6GVA
.
最有用的评论
它达到了您系统的文件观察者限制
试试
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
在https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the -technical-details 阅读更多关于正在发生的事情