Skip to content

Instantly share code, notes, and snippets.

@h4n2k
Created December 6, 2016 03:22
Show Gist options
  • Save h4n2k/25e78325565ceed6af0e21264cd5c471 to your computer and use it in GitHub Desktop.
Save h4n2k/25e78325565ceed6af0e21264cd5c471 to your computer and use it in GitHub Desktop.
[nodemon] Internal watch failed: watch ENOSPC
[nodemon] 1.8.1
[nodemon] to restart at any time, enterrs
[nodemon] watching: *.*
[nodemon] startingnode app.js
[nodemon] Internal watch failed: watch ENOSPC
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
@truongtrau
Copy link

thank so lot!

@Qasmi2
Copy link

Qasmi2 commented Jul 1, 2019

to kill all the node process " run the following command "
pkill -f node

@Olegborodko
Copy link

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p​

@Ankitacse
Copy link

step1)
sudo npm install mongodb@latest

step2)
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

step3)
sudo apt-get update

step4)
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse

step5)
sudo apt-get install MongoDB

step6)
nodemon serve

hopefully, it solved the same error I am facing while working on Angular8 with Nodejs and using MongoDB as a database.

for fetching above steps I follow the following links:-
1)https://docs.mongodb.com/v3.0/tutorial/install-mongodb-on-debian/
2)https://stackoverflow.com/questions/28945921/e-unable-to-locate-package-mongodb-org.
3)https://stackoverflow.com/questions/34733340/mongodb-gpg-invalid-signatures
that's all .. :)

@iclasschima
Copy link

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p​

This worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment