Angular/CLI — auto reload doesn't happen

后端 未结 11 1824
既然无缘
既然无缘 2020-12-24 13:06

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

相关标签:
11条回答
  • 2020-12-24 13:07
    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
    
    0 讨论(0)
  • 2020-12-24 13:10

    it works for me: ng serve --poll=1000

    0 讨论(0)
  • 2020-12-24 13:11

    run ng serve with sudo, it worked for me

    sudo ng serve
    

    This is only for Linux!

    0 讨论(0)
  • 2020-12-24 13:14

    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 !!

    0 讨论(0)
  • 2020-12-24 13:15

    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

    0 讨论(0)
  • 2020-12-24 13:18

    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
    
    0 讨论(0)
提交回复
热议问题