{"action":"created","issue":{"url":"https://api.github.com/repos/apparatus/fuge/issues/74","repository_url":"https://api.github.com/repos/apparatus/fuge","labels_url":"https://api.github.com/repos/apparatus/fuge/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/apparatus/fuge/issues/74/comments","events_url":"https://api.github.com/repos/apparatus/fuge/issues/74/events","html_url":"https://github.com/apparatus/fuge/issues/74","id":145973779,"number":74,"title":"Error: Cannot find module 'fuge'","user":{"login":"pedx78","id":5324808,"avatar_url":"https://avatars.githubusercontent.com/u/5324808?v=3","gravatar_id":"","url":"https://api.github.com/users/pedx78","html_url":"https://github.com/pedx78","followers_url":"https://api.github.com/users/pedx78/followers","following_url":"https://api.github.com/users/pedx78/following{/other_user}","gists_url":"https://api.github.com/users/pedx78/gists{/gist_id}","starred_url":"https://api.github.com/users/pedx78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedx78/subscriptions","organizations_url":"https://api.github.com/users/pedx78/orgs","repos_url":"https://api.github.com/users/pedx78/repos","events_url":"https://api.github.com/users/pedx78/events{/privacy}","received_events_url":"https://api.github.com/users/pedx78/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-05T12:30:19Z","updated_at":"2016-04-05T16:33:26Z","closed_at":null,"body":"going through example on this site. (OSX 10.11)\r\n\r\n`fuge generate system`\r\n`fuge shell ./fuge/compose-dev.yml`\r\n\r\nHowever, when I run 'start all', I get following error : \r\n\r\n```\r\n\r\n? fuge> start all\r\nrunning: frontend\r\nrunning:  PROXY_HOST=127.0.0.1 SERVICE_HOST=0.0.0.0 frontend_PORT=10000 api_PORT=10001 service1_PORT=10002 service2_PORT=10003 SERVICE_PORT=20000  exec /usr/local/Cellar/node/5.8.0/bin/node -r fuge index.js\r\nrunning: api\r\nrunning:  PROXY_HOST=127.0.0.1 SERVICE_HOST=0.0.0.0 frontend_PORT=10000 api_PORT=10001 service1_PORT=10002 service2_PORT=10003 SERVICE_PORT=20001  exec /usr/local/Cellar/node/5.8.0/bin/node -r fuge index.js\r\nrunning: service1\r\nrunning:  PROXY_HOST=127.0.0.1 SERVICE_HOST=0.0.0.0 frontend_PORT=10000 api_PORT=10001 service1_PORT=10002 service2_PORT=10003 SERVICE_PORT=20002  exec /usr/local/Cellar/node/5.8.0/bin/node -r fuge service.js\r\nrunning: service2\r\nrunning:  PROXY_HOST=127.0.0.1 SERVICE_HOST=0.0.0.0 frontend_PORT=10000 api_PORT=10001 service1_PORT=10002 service2_PORT=10003 SERVICE_PORT=20003  exec /usr/local/Cellar/node/5.8.0/bin/node -r fuge service.js\r\nrunning: __proxy\r\n? fuge> [frontend - 2261]: module.js:341\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'fuge'\r\n    at Function.Module._resolveFilename (module.js:339:15)\r\n    at Function.Module._load (module.js:290:25)\r\n    at Module.require (module.js:367:17)\r\n    at module.js:504:12\r\n    at Array.forEach (native)\r\n    at Function.Module._preloadModules (module.js:503:12)\r\n    at Function.startup.preloadModules (node.js:826:38)\r\n    at startup (node.js:119:17)\r\n    at node.js:933:3\r\n[api - 2262]: module.js:341\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'fuge'\r\n    at Function.Module._resolveFilename (module.js:339:15)\r\n    at Function.Module._load (module.js:290:25)\r\n    at Module.require (module.js:367:17)\r\n    at module.js:504:12\r\n    at Array.forEach (native)\r\n    at Function.Module._preloadModules (module.js:503:12)\r\n    at Function.startup.preloadModules (node.js:826:38)\r\n    at startup (node.js:119:17)\r\n    at node.js:933:3\r\nprocess exit [2261]: frontend\r\nprocess exit [2262]: api\r\n[service2 - 2264]: module.js:341\r\n    throw err;\r\n    ^\r\n```"},"comment":{"url":"https://api.github.com/repos/apparatus/fuge/issues/comments/205885741","html_url":"https://github.com/apparatus/fuge/issues/74#issuecomment-205885741","issue_url":"https://api.github.com/repos/apparatus/fuge/issues/74","id":205885741,"user":{"login":"AdrianRossouw","id":115108,"avatar_url":"https://avatars.githubusercontent.com/u/115108?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrianRossouw","html_url":"https://github.com/AdrianRossouw","followers_url":"https://api.github.com/users/AdrianRossouw/followers","following_url":"https://api.github.com/users/AdrianRossouw/following{/other_user}","gists_url":"https://api.github.com/users/AdrianRossouw/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrianRossouw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrianRossouw/subscriptions","organizations_url":"https://api.github.com/users/AdrianRossouw/orgs","repos_url":"https://api.github.com/users/AdrianRossouw/repos","events_url":"https://api.github.com/users/AdrianRossouw/events{/privacy}","received_events_url":"https://api.github.com/users/AdrianRossouw/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T16:33:26Z","updated_at":"2016-04-05T16:33:26Z","body":"i feel really weird about requiring the service running in the app to require all of fuge.\r\ncan we split the bits needed for proccess communication into a separate module, that they can both include.\r\n\r\nAnother thing to keep in mind is that we might not even be able to guarantee that the service is in the path of the system's node_modules. IE: the service could be a sibling directory to the service.\r\n\r\nso how about `-r <absolute path>` ?"}}