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