background
I recently used vue to write a project. When running the vue project with npm on the server, execute npm run serve , and an error was reported halfway through the process: Error: ENOSPC: System limit for number of file watchers reached
the reason
After checking, it is the limitation of the Linux system that caused this error. You need to set the parameter fs.inotify.max_user_watches .
Solution
Execute: vim /etc/sysctl.conf, add the following content:
fs.inotify.max_user_watches=524288
Input: wq
Execute on the command line: sysctl -p
Re-execute: npm run serve, no errors were reported.
Blogger: Test to make money
Motto: Use testing to complete the original accumulation, and use investment to move towards financial freedom
csdn:https://blog.csdn.net/ccgshigao
Blog Park: https://www.cnblogs.com/qa-freeroad/