{"action":"created","issue":{"url":"https://api.github.com/repos/kanasimi/work_crawler/issues/104","repository_url":"https://api.github.com/repos/kanasimi/work_crawler","labels_url":"https://api.github.com/repos/kanasimi/work_crawler/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/kanasimi/work_crawler/issues/104/comments","events_url":"https://api.github.com/repos/kanasimi/work_crawler/issues/104/events","html_url":"https://github.com/kanasimi/work_crawler/issues/104","id":372185527,"node_id":"MDU6SXNzdWUzNzIxODU1Mjc=","number":104,"title":"無法安裝 electron: 在新环境部署work_crawler时出现的离奇问题","user":{"login":"ha7rock","id":33951467,"node_id":"MDQ6VXNlcjMzOTUxNDY3","avatar_url":"https://avatars0.githubusercontent.com/u/33951467?v=4","gravatar_id":"","url":"https://api.github.com/users/ha7rock","html_url":"https://github.com/ha7rock","followers_url":"https://api.github.com/users/ha7rock/followers","following_url":"https://api.github.com/users/ha7rock/following{/other_user}","gists_url":"https://api.github.com/users/ha7rock/gists{/gist_id}","starred_url":"https://api.github.com/users/ha7rock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ha7rock/subscriptions","organizations_url":"https://api.github.com/users/ha7rock/orgs","repos_url":"https://api.github.com/users/ha7rock/repos","events_url":"https://api.github.com/users/ha7rock/events{/privacy}","received_events_url":"https://api.github.com/users/ha7rock/received_events","type":"User","site_admin":false},"labels":[{"id":473666028,"node_id":"MDU6TGFiZWw0NzM2NjYwMjg=","url":"https://api.github.com/repos/kanasimi/work_crawler/labels/help%20wanted%20%E9%9C%80%E8%A6%81%E5%8D%94%E5%8A%A9","name":"help wanted 需要協助","color":"128A0C","default":false},{"id":473666030,"node_id":"MDU6TGFiZWw0NzM2NjYwMzA=","url":"https://api.github.com/repos/kanasimi/work_crawler/labels/question%20%E5%95%8F%E9%A1%8C","name":"question 問題","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-20T07:50:05Z","updated_at":"2018-10-20T09:03:58Z","closed_at":null,"author_association":"NONE","body":"```\r\n下載/更新圖形介面需要用到的組件 electron...\r\n\r\n> electron@3.0.5 postinstall /home/tetsu76/manga/work_crawler-master/node_module               s/electron\r\n> node install.js\r\n\r\n/home/tetsu76/manga/work_crawler-master/node_modules/electron/install.js:49\r\n  throw err\r\n  ^\r\n\r\nError: EACCES: permission denied, mkdir '/home/tetsu76/manga/work_crawler-master               /node_modules/electron/.electron'\r\nnpm WARN work_crawler@1.6.20180920 No repository field.\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! electron@3.0.5 postinstall: `node install.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the electron@3.0.5 postinstall script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional log               ging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /root/.npm/_logs/2018-10-20T07_43_17_524Z-debug.log\r\nchild_process.js:651\r\n    throw err;\r\n    ^\r\n\r\nError: Command failed: npm i -D electron@latest\r\n    at checkExecSyncError (child_process.js:611:11)\r\n    at Object.execSync (child_process.js:648:13)\r\n    at install_npm (/home/tetsu76/manga/work_crawler.updater.js:62:28)\r\n    at /home/tetsu76/manga/work_crawler.updater.js:90:4\r\n    at /home/tetsu76/manga/GitHub.updater.node.js:87:5\r\n    at recover (/home/tetsu76/manga/GitHub.updater.node.js:327:5)\r\n    at /home/tetsu76/manga/GitHub.updater.node.js:342:4\r\n    at /home/tetsu76/manga/GitHub.updater.node.js:312:4\r\n    at IncomingMessage.<anonymous> (/home/tetsu76/manga/GitHub.updater.node.js:2               78:4)\r\n    at IncomingMessage.emit (events.js:187:15)\r\n\r\n```\r\n\r\n系统环境： \r\nDebian9\r\nNode.js ver.10.12\r\nnpm 6.4.1\r\n\r\n已检查确认档案夹权限没错，可是反复尝试无法成功，看样子是在下载图形化时出错了，请求帮助。"},"comment":{"url":"https://api.github.com/repos/kanasimi/work_crawler/issues/comments/431563037","html_url":"https://github.com/kanasimi/work_crawler/issues/104#issuecomment-431563037","issue_url":"https://api.github.com/repos/kanasimi/work_crawler/issues/104","id":431563037,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU2MzAzNw==","user":{"login":"kanasimi","id":186866,"node_id":"MDQ6VXNlcjE4Njg2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/186866?v=4","gravatar_id":"","url":"https://api.github.com/users/kanasimi","html_url":"https://github.com/kanasimi","followers_url":"https://api.github.com/users/kanasimi/followers","following_url":"https://api.github.com/users/kanasimi/following{/other_user}","gists_url":"https://api.github.com/users/kanasimi/gists{/gist_id}","starred_url":"https://api.github.com/users/kanasimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanasimi/subscriptions","organizations_url":"https://api.github.com/users/kanasimi/orgs","repos_url":"https://api.github.com/users/kanasimi/repos","events_url":"https://api.github.com/users/kanasimi/events{/privacy}","received_events_url":"https://api.github.com/users/kanasimi/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T09:03:58Z","updated_at":"2018-10-20T09:03:58Z","author_association":"OWNER","body":"Similar to https://github.com/electron-userland/electron-prebuilt/issues/263 \r\nhttps://github.com/npm/npm/issues/17268 https://github.com/electron/electron/issues/9815\r\n\r\n2 suggests:\r\n1. `sudo npm install -g electron --unsafe-perm=true --allow-root`\r\n2. `sudo ln -s /usr/bin/nodejs /usr/bin/node`\r\n"}}
{"actor":{"display_login":"kanasimi"}}