{"action":"created","issue":{"url":"https://api.github.com/repos/Storj/storjshare-gui/issues/740","repository_url":"https://api.github.com/repos/Storj/storjshare-gui","labels_url":"https://api.github.com/repos/Storj/storjshare-gui/issues/740/labels{/name}","comments_url":"https://api.github.com/repos/Storj/storjshare-gui/issues/740/comments","events_url":"https://api.github.com/repos/Storj/storjshare-gui/issues/740/events","html_url":"https://github.com/Storj/storjshare-gui/issues/740","id":278739189,"number":740,"title":"Error: Cannot find module 'electron'","user":{"login":"syntropysoftware","id":7308199,"avatar_url":"https://avatars3.githubusercontent.com/u/7308199?v=4","gravatar_id":"","url":"https://api.github.com/users/syntropysoftware","html_url":"https://github.com/syntropysoftware","followers_url":"https://api.github.com/users/syntropysoftware/followers","following_url":"https://api.github.com/users/syntropysoftware/following{/other_user}","gists_url":"https://api.github.com/users/syntropysoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/syntropysoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syntropysoftware/subscriptions","organizations_url":"https://api.github.com/users/syntropysoftware/orgs","repos_url":"https://api.github.com/users/syntropysoftware/repos","events_url":"https://api.github.com/users/syntropysoftware/events{/privacy}","received_events_url":"https://api.github.com/users/syntropysoftware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-03T02:56:36Z","updated_at":"2017-12-03T21:59:48Z","closed_at":null,"author_association":"NONE","body":"################ Versions ################\r\n\r\n- **GUI Version:** v1.0.3\r\n- **Operating System:** Linux manjaro 4.9.61-3\r\n- **npm version: 5.5.1\r\n- ** Node version: v9.2.0\r\n\r\n################ Expected Behavior ################\r\n```\r\nTried to install with instructions: https://github.com/Storj/storjshare-gui\r\n```\r\n################ Actual Behavior ################\r\n```\r\nAfter running the npm production start command I get the following error that module 'electron' can not be found...\r\n\r\nnpm --production start\r\n\r\n> @ start /root/storjshare-gui\r\n> node ./tasks/start\r\n\r\nmodule.js:544\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'electron'\r\n    at Function.Module._resolveFilename (module.js:542:15)\r\n    at Function.Module._load (module.js:472:25)\r\n    at Module.require (module.js:585:17)\r\n    at require (internal/module.js:11:18)\r\n    at Object.<anonymous> (/root/storjshare-gui/tasks/start.js:5:16)\r\n    at Module._compile (module.js:641:30)\r\n    at Object.Module._extensions..js (module.js:652:10)\r\n    at Module.load (module.js:560:32)\r\n    at tryModuleLoad (module.js:503:12)\r\n    at Function.Module._load (module.js:495:3)\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! @ start: `node ./tasks/start`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the @ start script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /root/.npm/_logs/2017-12-03T02_48_05_960Z-debug.log\r\n\r\n```\r\n\r\n################  Steps to Reproduce ################\r\n\r\n1. ... tried installing the module electron: \r\nnpm install --save electron-npm-install\r\n\r\n2. ...\r\nnpm install electron --save-dev\r\n\r\nand I get the following error:\r\nnpm install electron --save-dev\r\n\r\n> electron@1.6.2 postinstall /root/storjshare-gui/node_modules/electron\r\n> node install.js\r\n\r\nsh: node: command not found\r\nnpm WARN storjshare-gui No repository field.\r\nnpm WARN storjshare-gui No license field.\r\n\r\nnpm ERR! file sh\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno ENOENT\r\nnpm ERR! syscall spawn\r\nnpm ERR! electron@1.6.2 postinstall: `node install.js`\r\nnpm ERR! spawn ENOENT\r\nnpm ERR! \r\nnpm ERR! Failed at the electron@1.6.2 postinstall script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /root/.npm/_logs/2017-12-03T02_53_31_569Z-debug.log\r\n\r\n############\r\nThanks very much for your help!"},"comment":{"url":"https://api.github.com/repos/Storj/storjshare-gui/issues/comments/348818338","html_url":"https://github.com/Storj/storjshare-gui/issues/740#issuecomment-348818338","issue_url":"https://api.github.com/repos/Storj/storjshare-gui/issues/740","id":348818338,"user":{"login":"syntropysoftware","id":7308199,"avatar_url":"https://avatars3.githubusercontent.com/u/7308199?v=4","gravatar_id":"","url":"https://api.github.com/users/syntropysoftware","html_url":"https://github.com/syntropysoftware","followers_url":"https://api.github.com/users/syntropysoftware/followers","following_url":"https://api.github.com/users/syntropysoftware/following{/other_user}","gists_url":"https://api.github.com/users/syntropysoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/syntropysoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syntropysoftware/subscriptions","organizations_url":"https://api.github.com/users/syntropysoftware/orgs","repos_url":"https://api.github.com/users/syntropysoftware/repos","events_url":"https://api.github.com/users/syntropysoftware/events{/privacy}","received_events_url":"https://api.github.com/users/syntropysoftware/received_events","type":"User","site_admin":false},"created_at":"2017-12-03T21:59:48Z","updated_at":"2017-12-03T21:59:48Z","author_association":"NONE","body":"That is a good idea. I tried that however and got the following error:\r\n\r\n-------------------\r\n[root@manjaro ~]# npm install -g storjshare-daemon\r\nnpm ERR! Error while executing:\r\nnpm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/zipang/daemon.node.git\r\nnpm ERR! \r\nnpm ERR! fatal: Cannot come back to cwd: Permission denied\r\nnpm ERR! \r\nnpm ERR! exited with error code: 128\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /root/.npm/_logs/2017-12-03T21_56_09_566Z-debug.log\r\n\r\n-------------------------------\r\nI am running as \"root\", I even tried to create a new folder: /root/storjshare-daemon  and then make it wide open:\r\n\r\nchown -R ug+w storjshare-daemon/\r\nchmod 777 -R storjshare-daemon\r\n\r\nbut have the same error: \r\n\r\n-------------------\r\nnpm ERR! Error while executing:\r\nnpm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/zipang/daemon.node.git\r\nnpm ERR! \r\nnpm ERR! fatal: failed to stat '/root/storjshare-daemon': Permission denied\r\nnpm ERR! \r\nnpm ERR! exited with error code: 128\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /root/.npm/_logs/2017-12-03T21_55_08_137Z-debug.log\r\n--------------\r\n\r\nThanks again."}}
{"actor":{"display_login":"syntropysoftware"}}