{"action":"created","issue":{"url":"https://api.github.com/repos/assaf/node-passbook/issues/32","repository_url":"https://api.github.com/repos/assaf/node-passbook","labels_url":"https://api.github.com/repos/assaf/node-passbook/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/assaf/node-passbook/issues/32/comments","events_url":"https://api.github.com/repos/assaf/node-passbook/issues/32/events","html_url":"https://github.com/assaf/node-passbook/issues/32","id":59907039,"number":32,"title":"Cannot switch to old mode now.","user":{"login":"18601673727","id":3302620,"avatar_url":"https://avatars.githubusercontent.com/u/3302620?v=3","gravatar_id":"","url":"https://api.github.com/users/18601673727","html_url":"https://github.com/18601673727","followers_url":"https://api.github.com/users/18601673727/followers","following_url":"https://api.github.com/users/18601673727/following{/other_user}","gists_url":"https://api.github.com/users/18601673727/gists{/gist_id}","starred_url":"https://api.github.com/users/18601673727/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18601673727/subscriptions","organizations_url":"https://api.github.com/users/18601673727/orgs","repos_url":"https://api.github.com/users/18601673727/repos","events_url":"https://api.github.com/users/18601673727/events{/privacy}","received_events_url":"https://api.github.com/users/18601673727/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-05T05:23:28Z","updated_at":"2016-02-12T20:33:21Z","closed_at":"2015-03-10T06:08:24Z","body":"`npm install passbook --save`\r\n```\r\npassbook@2.1.0 node_modules/passbook\r\n└── cli@0.6.5 (exit@0.1.2, glob@3.2.11)\r\n```\r\n```\r\nError: Cannot switch to old mode now.\r\n    at emitDataEvents (_stream_readable.js:730:11)\r\n    at IncomingMessage.Readable.resume (_stream_readable.js:715:3)\r\n    at ClientRequest.<anonymous> (/Users/dev/repo/pass/node_modules/passbook/lib/pass.js:299:20)\r\n    at ClientRequest.g (events.js:180:16)\r\n    at ClientRequest.EventEmitter.emit (events.js:95:17)\r\n    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1688:21)\r\n    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)\r\n    at Socket.socketOnData [as ondata] (http.js:1583:20)\r\n    at TCP.onread (net.js:527:27)\r\n```"},"comment":{"url":"https://api.github.com/repos/assaf/node-passbook/issues/comments/183478975","html_url":"https://github.com/assaf/node-passbook/issues/32#issuecomment-183478975","issue_url":"https://api.github.com/repos/assaf/node-passbook/issues/32","id":183478975,"user":{"login":"mjwheatley","id":11838992,"avatar_url":"https://avatars.githubusercontent.com/u/11838992?v=3","gravatar_id":"","url":"https://api.github.com/users/mjwheatley","html_url":"https://github.com/mjwheatley","followers_url":"https://api.github.com/users/mjwheatley/followers","following_url":"https://api.github.com/users/mjwheatley/following{/other_user}","gists_url":"https://api.github.com/users/mjwheatley/gists{/gist_id}","starred_url":"https://api.github.com/users/mjwheatley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjwheatley/subscriptions","organizations_url":"https://api.github.com/users/mjwheatley/orgs","repos_url":"https://api.github.com/users/mjwheatley/repos","events_url":"https://api.github.com/users/mjwheatley/events{/privacy}","received_events_url":"https://api.github.com/users/mjwheatley/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T20:33:21Z","updated_at":"2016-02-12T20:33:21Z","body":"I was able to resolve the error by commenting out line 32 of /lib/pass.js\r\n301  response.pipe(file)\r\n302  //response.resume();"}}