events.js:183 抛出 er;//未处理的“错误"事件 [英] events.js:183 throw er; // Unhandled 'error' event

查看:47
本文介绍了events.js:183 抛出 er;//未处理的“错误"事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I created a new React Project via the command npx create-react-app agent_mo project. It has been created but while starting it with npm start i am getting the following error

推荐答案

运行以下命令避免 ENOSPC:

Run the below command to avoid 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

这也会在重新启动后持续存在.

This will also persist across reboots.

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

参考:Node.js:什么是ENOSPC错误以及如何解决?

这篇关于events.js:183 抛出 er;//未处理的“错误"事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆