Skip to main content

Posts

Showing posts from February, 2021

Error: ENOSPC: System limit for number of file watchers reached, watch

 Hi, Dependency version details. node: v15.8.0 nvm: 0.33.2 nodejs: v4.2.6 When I run an "npm start" command I'm getting this error. Error: ENOSPC: System limit for number of file watchers reached, watch '/var/www/html/project/simple-mern-project/frontend/public ' Error message: I found the solution from this StackOverflow URL:  https://stackoverflow.com/questions/55763428/react-native-error-enospc-system-limit-for-number-of-file-watchers-reached This is the command, I run to solve the issue:  # insert the new value into the system config echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p # check that the new value was applied cat /proc/sys/fs/inotify/max_user_watches # config variable name (not runnable) fs.inotify.max_user_watches=524288

nvm is not compatible with the npm config "prefix" option

Hi All, When I open the terminal, I'm getting this error. I run this command to solve that issue. npm config set prefix $NVM_DIR/versions/node/v7.10.0