Error: ENOSPC: System limit for number of file watchers reached…

Error: enospc: system limit for number of file watchers reached, watch ‘file path’

The Vue project encountered the following errors when running the NPM run serve command in the deepin15.11 system environment:

Solution
the problem can be solved by executing the following two commands in sequence at the terminal

echo fs.inotify.max_ user_ watches=524288 | sudo tee -a /etc/sysctl.conf && amp; sudo sysctl -p
sudo sysctl –system

reason

After checking, it is the limitation of the Linux system that causes this error. You need to set fs.inotify.max_ user_ watches   This parameter.

resolvent

Execution: VIM  / Etc/sysctl.conf, add the following:

fs.inotify.max_ user_ watches=524288

Input: WQ

Execute on the command line: sysctl – P

Similar Posts: