ubuntu跑vue报错:#Error from chokidar # Error: ENOSPC: System limit for number of file watchers reached

Error from chokidar (/home/jayce/桌面/bootstrap-vue/learnBV/learn-bootstrap-vue/node_modules/lodash): Error: ENOSPC: System limit for number of file watchers reached, watch ‘/home/jayce/桌面/bootstrap-vue/learnBV/learn-bootstrap-vue/node_modules/lodash/xorWith.js‘

It’s hitting your system‘s file watchers limit

Try

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

Read more about what’s happening at https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details

https://github.com/gatsbyjs/gatsby/issues/11406

ubuntu跑vue报错:#Error from chokidar # Error: ENOSPC: System limit for number of file watchers reached

上一篇:Linux编译和安装boost库


下一篇:Linux基础命令groupadd(如何创建用户组?)