I recently started working with Angular/CLI tool, I\'m facing a problem while executing the file, that is when I run
ng serve
then this c
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
it works for me: ng serve --poll=1000
run ng serve with sudo, it worked for me
sudo ng serve
This is only for Linux!
If you are using Linux system then the below command may be helpful for you
Run below command in terminal
sudo ng serve
It works for me !!
I am using angular 6 and increasing time on max_user_watches worked for me
sudo echo "fs.inotify.max_user_watches=524288" >> /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf
Just run all the following command and I hope it will work.
rm -rf nodes_modules/
npm update
npm install
and start the server again
ng serve -o