Fixing package.json again, emitting error event