Problem:
System: Ubuntu 18
problem scenario: when using react scaffold to write a case, the command NPM start is unsuccessful, and an error: enospc: system limit for number of file watchers occurs.
Solution:
error: enospc: system limit for number of file watchers error is that the system of the file monitor has a limit and reaches the default upper limit, so the limit needs to be increased
you can use the instruction $cat/proc/sys/FS/inotify/max_user_watch to see
root@:~$ cat /proc/sys/fs/inotify/max_user_watch
es
524288
New instructions can be set for temporary limit increase:
$ sudo sysctl fs.inotify.max_user_watches=524288
$ sudo sysctl -p
Permanent increase limit
$ echo fs.inotify.max_user_watches = 524288 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p
Read More:
- [Solved] Linux Error: Error: ENOSPC: System limit for number of file watchers
- [Solved] Error: ENOSPC: System limit for number of file watchers reached
- Error: ENOSPC: no space left on device [How to Solve]
- Linux Error: audit: backlog limit exceeded [How to Solve]
- Linux system service command error: Failed to allocate directory watch: Too many open files
- [Solved] xtrabackup Error: “Too many open files” (system error number 24)
- Linux useradd Error: Creating mailbox file: File exists
- Parse error in ubantu/Linux system [How to Solve]
- [Solved] Linux virtual machine startup error: operating system not found
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- [Solved] failed to start remount root and kernel file system
- [Solved] FATAL CONFIG FILE ERROR: Bad directive or wrong number of arguments
- [Soled] MTPuTTY error: unable to run putty the system cannot find the specified file
- Error: linker ` link. Exe ` not found | = note: the system cannot find the specified file.
- [Solved] fatal error: linux/videodev.h: No such file or directory
- System has not been booted with systemd as init system (PID 1). Can‘t operate
- [Solved] Linux Install Goland Error: Error opening zip file or JAR manifest missing
- [Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.
- Error in Linux running file: bash: $’\r’: command not found