Angular CLI: 1.6.1
Node: 8.2.1
OS: linux x64
"devDependencies": {
"@angular/cli": "1.3.2",
"@angular/compiler-cli": "4.0.0",
"@angular/language-service": "4.2.4",
}
ng serve
和ng serve --watch
无效。
答案 0 :(得分:2)
我认为你应该通过在console
$ sudo sysctl fs.inotify.max_user_watches=524288
$ sudo sysctl -p --system
您可以参考此链接了解更多https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers
参见上面的链接如果您希望永久限制,请使用:
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p --system