{"action":"created","issue":{"url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/137","repository_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push","labels_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/137/comments","events_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/137/events","html_url":"https://github.com/nordnet/cordova-hot-code-push/issues/137","id":150705955,"number":137,"title":"Failed to install 'cordova-hot-code-push-plugin':ReferenceError: error is not defined","user":{"login":"diegodotta","id":7044003,"avatar_url":"https://avatars.githubusercontent.com/u/7044003?v=3","gravatar_id":"","url":"https://api.github.com/users/diegodotta","html_url":"https://github.com/diegodotta","followers_url":"https://api.github.com/users/diegodotta/followers","following_url":"https://api.github.com/users/diegodotta/following{/other_user}","gists_url":"https://api.github.com/users/diegodotta/gists{/gist_id}","starred_url":"https://api.github.com/users/diegodotta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegodotta/subscriptions","organizations_url":"https://api.github.com/users/diegodotta/orgs","repos_url":"https://api.github.com/users/diegodotta/repos","events_url":"https://api.github.com/users/diegodotta/events{/privacy}","received_events_url":"https://api.github.com/users/diegodotta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-24T22:21:45Z","updated_at":"2016-04-25T19:07:08Z","closed_at":null,"body":"I'm spending few hours trying to install the plugin, but I always receive this message.\r\n\r\n`Installing dependency packages:\r\n{\r\n  \"xml2js\": \">=0.4\"\r\n}\r\nFailed to install 'cordova-hot-code-push-plugin':ReferenceError: error is not defined\r\n    at module.exports (C:\\Youper\\Tests\\TestProject\\plugins\\cordova-hot-code-push-plugin\\scripts\\beforePluginInstallHook.js:80:11)\r\n    at runScriptViaModuleLoader (C:\\Users\\Youper XPS\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\cordova-lib\\src\\hooks\\HooksRunner.js:167:18)\r\n    at runScript (C:\\Users\\Youper XPS\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\cordova-lib\\src\\hooks\\HooksRunner.js:145:16)\r\n    at C:\\Users\\Youper XPS\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\cordova-lib\\src\\hooks\\HooksRunner.js:130:20\r\n    at _fulfilled (C:\\Users\\Youper XPS\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.js:787:54)\r\n    at self.promiseDispatch.done (C:\\Users\\Youper XPS\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.js:816:30)\r\n    at Promise.promise.promiseDispatch (C:\\Users\\Youper XPS\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.js:749:13)\r\n    at C:\\Users\\Youper XPS\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.js:810:14\r\n    at flush (C:\\Users\\Youper XPS\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.js:108:17)\r\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\nError: error is not defined`\r\n\r\nMy system info:\r\n\r\n- Win 10\r\n- Cordova CLI: 6.1.1\r\n- Gulp version:  CLI version 3.9.0\r\n- Gulp local:\r\n- Ionic CLI Version: 1.7.14\r\n- Ionic App Lib Version: 0.7.0\r\n- Node Version: v5.11.0\r\n- NPM 3.3.8\r\n- Python 2.7\r\n\r\nSome idea?"},"comment":{"url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/comments/214482157","html_url":"https://github.com/nordnet/cordova-hot-code-push/issues/137#issuecomment-214482157","issue_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/137","id":214482157,"user":{"login":"diegodotta","id":7044003,"avatar_url":"https://avatars.githubusercontent.com/u/7044003?v=3","gravatar_id":"","url":"https://api.github.com/users/diegodotta","html_url":"https://github.com/diegodotta","followers_url":"https://api.github.com/users/diegodotta/followers","following_url":"https://api.github.com/users/diegodotta/following{/other_user}","gists_url":"https://api.github.com/users/diegodotta/gists{/gist_id}","starred_url":"https://api.github.com/users/diegodotta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegodotta/subscriptions","organizations_url":"https://api.github.com/users/diegodotta/orgs","repos_url":"https://api.github.com/users/diegodotta/repos","events_url":"https://api.github.com/users/diegodotta/events{/privacy}","received_events_url":"https://api.github.com/users/diegodotta/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T19:07:08Z","updated_at":"2016-04-25T19:07:08Z","body":"Thanks for your attention, maybe this post give you a clue?\r\nhttp://stackoverflow.com/questions/27688804/how-do-i-debug-error-spawn-enoent-on-node-js#answer-27688805"}}