-
-
Save h4n2k/25e78325565ceed6af0e21264cd5c471 to your computer and use it in GitHub Desktop.
[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 |
thank so lot!
to kill all the node process " run the following command "
pkill -f node
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
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 .. :)
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
This worked for me
http://stackoverflow.com/questions/34662574/node-js-getting-error-nodemon-internal-watch-failed-watch-enospc