{"action":"created","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/922","repository_url":"https://api.github.com/repos/Glavin001/atom-beautify","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/922/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/922/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/922/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/922","id":148492025,"number":922,"title":"Install Error","user":{"login":"mcarpenterjr","id":11430497,"avatar_url":"https://avatars.githubusercontent.com/u/11430497?v=3","gravatar_id":"","url":"https://api.github.com/users/mcarpenterjr","html_url":"https://github.com/mcarpenterjr","followers_url":"https://api.github.com/users/mcarpenterjr/followers","following_url":"https://api.github.com/users/mcarpenterjr/following{/other_user}","gists_url":"https://api.github.com/users/mcarpenterjr/gists{/gist_id}","starred_url":"https://api.github.com/users/mcarpenterjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcarpenterjr/subscriptions","organizations_url":"https://api.github.com/users/mcarpenterjr/orgs","repos_url":"https://api.github.com/users/mcarpenterjr/repos","events_url":"https://api.github.com/users/mcarpenterjr/events{/privacy}","received_events_url":"https://api.github.com/users/mcarpenterjr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Glavin001/atom-beautify/labels/third-party%20bug","name":"third-party bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/Glavin001/atom-beautify/labels/windows","name":"windows","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"Glavin001","id":1885333,"avatar_url":"https://avatars.githubusercontent.com/u/1885333?v=3","gravatar_id":"","url":"https://api.github.com/users/Glavin001","html_url":"https://github.com/Glavin001","followers_url":"https://api.github.com/users/Glavin001/followers","following_url":"https://api.github.com/users/Glavin001/following{/other_user}","gists_url":"https://api.github.com/users/Glavin001/gists{/gist_id}","starred_url":"https://api.github.com/users/Glavin001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glavin001/subscriptions","organizations_url":"https://api.github.com/users/Glavin001/orgs","repos_url":"https://api.github.com/users/Glavin001/repos","events_url":"https://api.github.com/users/Glavin001/events{/privacy}","received_events_url":"https://api.github.com/users/Glavin001/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/milestones/7","html_url":"https://github.com/Glavin001/atom-beautify/milestones/v0.30.0","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/milestones/7/labels","id":1158400,"number":7,"title":"v0.30.0","description":"","creator":{"login":"Glavin001","id":1885333,"avatar_url":"https://avatars.githubusercontent.com/u/1885333?v=3","gravatar_id":"","url":"https://api.github.com/users/Glavin001","html_url":"https://github.com/Glavin001","followers_url":"https://api.github.com/users/Glavin001/followers","following_url":"https://api.github.com/users/Glavin001/following{/other_user}","gists_url":"https://api.github.com/users/Glavin001/gists{/gist_id}","starred_url":"https://api.github.com/users/Glavin001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glavin001/subscriptions","organizations_url":"https://api.github.com/users/Glavin001/orgs","repos_url":"https://api.github.com/users/Glavin001/repos","events_url":"https://api.github.com/users/Glavin001/events{/privacy}","received_events_url":"https://api.github.com/users/Glavin001/received_events","type":"User","site_admin":false},"open_issues":60,"closed_issues":16,"state":"open","created_at":"2015-06-10T11:49:26Z","updated_at":"2016-04-16T23:01:34Z","due_on":"2016-05-31T03:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-14T21:49:11Z","updated_at":"2016-04-16T23:14:06Z","closed_at":null,"body":"### Description\r\n\r\natom-beautify would not update to v0.29.2, uninstalled and attempted to reinstall.\r\n\r\n### Expected Results\r\n\r\natom-beautify should have installed but fails with this error:\r\n\r\n```\r\n\r\n> spawn-sync@1.0.15 postinstall C:\\Users\\MARKNC~1\\AppData\\Local\\Temp\\apm-install-dir-116314-4772-at3zgv\\node_modules\\atom-beautify\\node_modules\\cross-spawn\\node_modules\\spawn-sync\r\n> node postinstall\r\n\r\nInstalling native dependencies (this may take up to a minute)\r\n\r\nnpm WARN optional dep failed, continuing fsevents@1.0.11\r\nnpm WARN engine deep-extend@0.4.1: wanted: {\"node\":\">=0.12.0\",\"iojs\":\">=1.0.0\"} (current: {\"node\":\"0.10.40\",\"npm\":\"2.13.3\"})\r\nnpm WARN engine is-buffer@1.1.3: wanted: {\"node\":\">=0.12\"} (current: {\"node\":\"0.10.40\",\"npm\":\"2.13.3\"})\r\nnpm WARN optional dep failed, continuing source-map@0.1.43\r\nnpm WARN engine is-buffer@1.1.3: wanted: {\"node\":\">=0.12\"} (current: {\"node\":\"0.10.40\",\"npm\":\"2.13.3\"})\r\nnpm WARN engine is-buffer@1.1.3: wanted: {\"node\":\">=0.12\"} (current: {\"node\":\"0.10.40\",\"npm\":\"2.13.3\"})\r\nnpm WARN engine is-buffer@1.1.3: wanted: {\"node\":\">=0.12\"} (current: {\"node\":\"0.10.40\",\"npm\":\"2.13.3\"})\r\nnpm WARN engine is-buffer@1.1.3: wanted: {\"node\":\">=0.12\"} (current: {\"node\":\"0.10.40\",\"npm\":\"2.13.3\"})\r\nnpm WARN engine is-buffer@1.1.3: wanted: {\"node\":\">=0.12\"} (current: {\"node\":\"0.10.40\",\"npm\":\"2.13.3\"})\r\nnpm WARN engine is-buffer@1.1.3: wanted: {\"node\":\">=0.12\"} (current: {\"node\":\"0.10.40\",\"npm\":\"2.13.3\"})\r\nnpm ERR! Windows_NT 6.1.7601\r\nnpm ERR! argv \"C:\\\\Users\\\\Mark N Carpenter Jr\\\\AppData\\\\Local\\\\atom\\\\app-1.7.0\\\\resources\\\\app\\\\apm\\\\bin\\\\node.exe\" \"C:\\\\Users\\\\Mark N Carpenter Jr\\\\AppData\\\\Local\\\\atom\\\\app-1.7.0\\\\resources\\\\app\\\\apm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"--globalconfig\" \"C:\\\\Users\\\\Mark N Carpenter Jr\\\\.atom\\\\.apm\\\\.apmrc\" \"--userconfig\" \"C:\\\\Users\\\\Mark N Carpenter Jr\\\\.atom\\\\.apmrc\" \"install\" \"C:\\\\Users\\\\MARKNC~1\\\\AppData\\\\Local\\\\Temp\\\\d-116314-4772-105dk6o\\\\package.tgz\" \"--target=0.36.8\" \"--arch=ia32\"\r\nnpm ERR! node v0.10.40\r\nnpm ERR! npm  v2.13.3\r\nnpm ERR! file C:\\Users\\Mark N Carpenter Jr\\.atom\\.apm\\amdefine\\1.0.0\\package\\package.json\r\nnpm ERR! code EJSONPARSE\r\n\r\nnpm ERR! Failed to parse json\r\nnpm ERR! Unexpected token '\\u0000' at 1:1\r\nnpm ERR! \r\nnpm ERR! ^\r\nnpm ERR! File: C:\\Users\\Mark N Carpenter Jr\\.atom\\.apm\\amdefine\\1.0.0\\package\\package.json\r\nnpm ERR! Failed to parse package.json data.\r\nnpm ERR! package.json must be actual JSON, not just JavaScript.\r\nnpm ERR! \r\nnpm ERR! This is not a bug in npm.\r\nnpm ERR! Tell the package author to fix their package.json file. JSON.parse\r\n\r\n```\r\n\r\n### Running Windows 7\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/comments/210921620","html_url":"https://github.com/Glavin001/atom-beautify/issues/922#issuecomment-210921620","issue_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/922","id":210921620,"user":{"login":"Glavin001","id":1885333,"avatar_url":"https://avatars.githubusercontent.com/u/1885333?v=3","gravatar_id":"","url":"https://api.github.com/users/Glavin001","html_url":"https://github.com/Glavin001","followers_url":"https://api.github.com/users/Glavin001/followers","following_url":"https://api.github.com/users/Glavin001/following{/other_user}","gists_url":"https://api.github.com/users/Glavin001/gists{/gist_id}","starred_url":"https://api.github.com/users/Glavin001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glavin001/subscriptions","organizations_url":"https://api.github.com/users/Glavin001/orgs","repos_url":"https://api.github.com/users/Glavin001/repos","events_url":"https://api.github.com/users/Glavin001/events{/privacy}","received_events_url":"https://api.github.com/users/Glavin001/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T23:14:06Z","updated_at":"2016-04-16T23:14:06Z","body":"I just published a patch in release v0.29.4 that makes `cross-spawn` dependency optional. \r\nThe [`cross-spawn`](https://github.com/IndigoUnited/node-cross-spawn) package depends on [`spawn-sync`](https://github.com/ForbesLindesay/spawn-sync) and has been causing problems when installing Atom-Beautify for many users. By making this dependency optional, users will be able to easily install Atom-Beautify and, in the case that [`cross-spawn`](https://github.com/IndigoUnited/node-cross-spawn) fails to install, will fallback to the builtin [`spawn`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) method."}}