Well, time passes and that implies a technical update, so now starting the way to do some AngularJS 2.

I wanted to start easy and from a well known source, so I decided to check the resources on angular2 and since I said, easy, after checking getting the quick test with 5 min quickstart if angular.io, I’ve started with the case study and of course, there are some setting up problems.

[1] throw er; // Unhandled 'error' event
[1] ^
[1] Error: watch node_modules/lite-server/node_modules/browser-sync/node_modules/micromatch/node_modules/braces/node_modules/preserve/test.js ENOSPC
[1] at exports._errnoException (util.js:870:11)
[1] at FSWatcher.start (fs.js:1234:19)
[1] at Object.fs.watch (fs.js:1262:11)
[1] at createFsWatchInstance (/home/lala/repos/angular2-quickstart/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:37:15)
[1] at setFsWatchListener (/home/lala/repos/angular2-quickstart/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:80:15)
[1] at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/lala/repos/angular2-quickstart/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:228:14)
[1] at FSWatcher.NodeFsHandler._handleFile (/home/lala/repos/angular2-quickstart/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:255:21)
[1] at FSWatcher. (/home/lala/repos/angular2-quickstart/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:473:21)
[1] at FSReqWrap.oncomplete (fs.js:82:15)
[1] npm

I came across this thread, where it gives a solution for Ubuntu users, that at least works for me

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

I cannot say that I understand it too much, except for something else that I read, that the system has a limit to how many files can be watched by a user, and seems that you run out of watches if Grunt is running with other programs, I’m not sure if is my case, but some sense makes.