gpt4 book ai didi

node.js - 事件.js :183 throw er;//Unhandled 'error' event

转载 作者:搜寻专家 更新时间:2023-10-31 23:03:16 24 4
gpt4 key购买 nike

我通过命令 npx create-react-app agent_mo 项目创建了一个新的 React 项目。它已创建,但在使用 npm start 启动它时出现以下错误

enter image description here

最佳答案

运行以下命令以避免 ENOSPC:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

对于 Arch Linux,将此行添加到 /etc/sysctl.d/99-sysctl.conf:

fs.inotify.max_user_watches=524288

然后执行:

sysctl --system

这也会在重启后持续存在。

https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details

引用文献:Node.js: what is ENOSPC error and how to solve?

关于node.js - 事件.js :183 throw er;//Unhandled 'error' event,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49975596/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com