执行npm run dev
,报错:
Error: ENOSPC: System limit for number of file watchers reached
执行vim /etc/sysctl.conf
末尾加入:
fs.inotify.max_user_watches=524288
之后执行sysctl -p
参考资料:https://blog.csdn.net/ccgshigao/article/details/109825037