{"action":"created","issue":{"url":"https://api.github.com/repos/developit/preact-cli/issues/533","repository_url":"https://api.github.com/repos/developit/preact-cli","labels_url":"https://api.github.com/repos/developit/preact-cli/issues/533/labels{/name}","comments_url":"https://api.github.com/repos/developit/preact-cli/issues/533/comments","events_url":"https://api.github.com/repos/developit/preact-cli/issues/533/events","html_url":"https://github.com/developit/preact-cli/issues/533","id":308812407,"number":533,"title":"Cannot install","user":{"login":"avalanche1","id":10534563,"avatar_url":"https://avatars2.githubusercontent.com/u/10534563?v=4","gravatar_id":"","url":"https://api.github.com/users/avalanche1","html_url":"https://github.com/avalanche1","followers_url":"https://api.github.com/users/avalanche1/followers","following_url":"https://api.github.com/users/avalanche1/following{/other_user}","gists_url":"https://api.github.com/users/avalanche1/gists{/gist_id}","starred_url":"https://api.github.com/users/avalanche1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avalanche1/subscriptions","organizations_url":"https://api.github.com/users/avalanche1/orgs","repos_url":"https://api.github.com/users/avalanche1/repos","events_url":"https://api.github.com/users/avalanche1/events{/privacy}","received_events_url":"https://api.github.com/users/avalanche1/received_events","type":"User","site_admin":false},"labels":[{"id":785944419,"url":"https://api.github.com/repos/developit/preact-cli/labels/need%20more%20info","name":"need more info","color":"f99475","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-27T03:48:33Z","updated_at":"2018-04-25T01:38:31Z","closed_at":null,"author_association":"NONE","body":"<!-- Please don't delete this template -->\r\n<!-- Before creating an issue please make sure you are using the latest version of preact-cli. -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nbug\r\n**What is the current behaviour?**\r\nAfter running `npm i -g preact-cli@latest` I get tf output:\r\n```\r\n node lib/install.js\r\n\r\n/usr/local/lib/node_modules/preact-cli/node_modules/each-async/node_modules/onetime/index.js:15\r\n                                throw new Error(fnName + ' can only be called once.');\r\n                                ^\r\n\r\nError: callback() can only be called once.\r\n    at onetime (/usr/local/lib/node_modules/preact-cli/node_modules/each-async/node_modules/onetime/index.js:15:11)\r\n    at /usr/local/lib/node_modules/preact-cli/node_modules/download/index.js:156:5\r\n    at ConcatStream.<anonymous> (/usr/local/lib/node_modules/preact-cli/node_modules/concat-stream/index.js:37:43)\r\n    at emitNone (events.js:111:20)\r\n    at ConcatStream.emit (events.js:208:7)\r\n    at finishMaybe (/usr/local/lib/node_modules/preact-cli/node_modules/readable-stream/lib/_stream_writable.js:620:14)\r\n    at endWritable (/usr/local/lib/node_modules/preact-cli/node_modules/readable-stream/lib/_stream_writable.js:628:3)\r\n    at ConcatStream.Writable.end (/usr/local/lib/node_modules/preact-cli/node_modules/readable-stream/lib/_stream_writable.js:584:41)\r\n    at DuplexWrapper.onend (/usr/local/lib/node_modules/preact-cli/node_modules/readable-stream/lib/_stream_readable.js:577:10)\r\n    at Object.onceWrapper (events.js:313:30)\r\nnpm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! simplehttp2server@2.0.0 postinstall: `node lib/install.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the simplehttp2server@2.0.0 postinstall script.\r\n\r\n```\r\n\r\n\r\n**Please mention other relevant information.**\r\nnode 8.9.4\r\nnpm 5.7.1\r\nosx 10.12.1"},"comment":{"url":"https://api.github.com/repos/developit/preact-cli/issues/comments/384133814","html_url":"https://github.com/developit/preact-cli/issues/533#issuecomment-384133814","issue_url":"https://api.github.com/repos/developit/preact-cli/issues/533","id":384133814,"user":{"login":"neuraltek","id":1504811,"avatar_url":"https://avatars3.githubusercontent.com/u/1504811?v=4","gravatar_id":"","url":"https://api.github.com/users/neuraltek","html_url":"https://github.com/neuraltek","followers_url":"https://api.github.com/users/neuraltek/followers","following_url":"https://api.github.com/users/neuraltek/following{/other_user}","gists_url":"https://api.github.com/users/neuraltek/gists{/gist_id}","starred_url":"https://api.github.com/users/neuraltek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neuraltek/subscriptions","organizations_url":"https://api.github.com/users/neuraltek/orgs","repos_url":"https://api.github.com/users/neuraltek/repos","events_url":"https://api.github.com/users/neuraltek/events{/privacy}","received_events_url":"https://api.github.com/users/neuraltek/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T01:38:31Z","updated_at":"2018-04-25T01:38:31Z","author_association":"NONE","body":"Same error as above still:\r\n\r\ncabox@box-codeanywhere:~/workspace$ node -v\r\nv8.11.1\r\ncabox@box-codeanywhere:~/workspace$ npm -v\r\n5.6.0\r\n\r\nError message:\r\n\r\n simplehttp2server@2.0.0 postinstall /usr/lib/node_modules/simplehttp2server\r\n> node lib/install.js\r\n\r\n/usr/lib/node_modules/simplehttp2server/node_modules/onetime/index.js:15\r\n                                throw new Error(fnName + ' can only be called once.');\r\n                                ^\r\n\r\nError: callback() can only be called once.\r\n    at onetime (/usr/lib/node_modules/simplehttp2server/node_modules/onetime/index.js:15:11)\r\n    at /usr/lib/node_modules/simplehttp2server/node_modules/download/index.js:156:5\r\n    at ConcatStream.<anonymous> (/usr/lib/node_modules/simplehttp2server/node_modules/concat-stream/index.js:37:43)\r\n    at emitNone (events.js:111:20)\r\n    at ConcatStream.emit (events.js:208:7)\r\n    at finishMaybe (/usr/lib/node_modules/simplehttp2server/node_modules/readable-stream/lib/_stream_writable.js:630:14)\r\n    at endWritable (/usr/lib/node_modules/simplehttp2server/node_modules/readable-stream/lib/_stream_writable.js:638:3)\r\n    at ConcatStream.Writable.end (/usr/lib/node_modules/simplehttp2server/node_modules/readable-stream/lib/_stream_writable.js:594:41)\r\n    at DuplexWrapper.onend (/usr/lib/node_modules/simplehttp2server/node_modules/readable-stream/lib/_stream_readable.js:577:10)\r\n    at Object.onceWrapper (events.js:313:30)\r\nnpm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.2 (node_modules/preact-cli/node_modules/fsevents):\r\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.2: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"linux\",\"arch\":\"x64\"})\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! simplehttp2server@2.0.0 postinstall: `node lib/install.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the simplehttp2server@2.0.0 postinstall script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\n\r\nCurious what environments are actually working.  I am hesitant to turn my personal linux workstation into a js developer workstation thus the need to test out in codeanywhere.com.\r\n"}}
{"actor":{"display_login":"neuraltek"}}