Working Of Yarn and npm

As an Ember developer, discovering Yarn package manager by Facebook was the best that could happen to me. Whenever one of my fellow developers encountered “Broccoli Plugin failed…” I used to say ‘rm -rf node_modules’, that’s what my seniors told me and I continued the tradition. That was very frustrating and as a beginner, I use to blame it all on Ember as I didn’t understand much of what was happening. As time passed I realized npm was the culprit. But a few months back I discovered this Yarn package manager. When I found it, I read

Solution to Ember.js app's frequent failures (Error:FSEventStreamStart)

In our ember.js based project after getting latest code and running following commands: npm install && bower install npm start when I was starting app, it was failing randomly with following error. (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) events.js:85 throw er; // Unhandled 'error' event ^ Error: watch EMFILE at exports._errnoException (util.js:746:11) at FSEvent.FSWatcher._handle.onchange (fs.js:1161:26) npm ERR! Darwin 14.5.0 npm ERR! argv "node" "/usr/local/bin/npm" "start" .... To solve this issue I