{"action":"opened","issue":{"url":"https://api.github.com/repos/strongloop/fsevents/issues/121","repository_url":"https://api.github.com/repos/strongloop/fsevents","labels_url":"https://api.github.com/repos/strongloop/fsevents/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/fsevents/issues/121/comments","events_url":"https://api.github.com/repos/strongloop/fsevents/issues/121/events","html_url":"https://github.com/strongloop/fsevents/issues/121","id":140709853,"number":121,"title":"Event not emitted with npm install --save","user":{"login":"matthewp","id":361671,"avatar_url":"https://avatars.githubusercontent.com/u/361671?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewp","html_url":"https://github.com/matthewp","followers_url":"https://api.github.com/users/matthewp/followers","following_url":"https://api.github.com/users/matthewp/following{/other_user}","gists_url":"https://api.github.com/users/matthewp/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewp/subscriptions","organizations_url":"https://api.github.com/users/matthewp/orgs","repos_url":"https://api.github.com/users/matthewp/repos","events_url":"https://api.github.com/users/matthewp/events{/privacy}","received_events_url":"https://api.github.com/users/matthewp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-14T15:36:15Z","updated_at":"2016-03-14T15:36:15Z","closed_at":null,"body":"When doing something like `npm install foo --save` the package.json file will be updated, which should trigger a change event, but does not.\r\n\r\n```\r\nOS: OSX 10.11.3 (15D21)\r\nNode: 5.3.0\r\nNPM: 3.4.1\r\n```\r\n\r\nUsing this script:\r\n\r\n```js\r\nvar fsevents = require('fsevents');\r\nvar watcher = fsevents(__dirname);\r\n\r\nwatcher.on('fsevent', function(path){\r\n  console.log('fsevent', path);\r\n});\r\n\r\nwatcher.on('change', function(path){\r\n  console.log('change', path);\r\n});\r\n\r\nwatcher.start();\r\n```\r\n\r\nI see many events for files in `node_modules/.staging`, these seem to be files related to the module being installed.  The package.json is never being emitted, however."}}