{"action":"opened","issue":{"url":"https://api.github.com/repos/codefoundries/UniversalRelayBoilerplate/issues/32","repository_url":"https://api.github.com/repos/codefoundries/UniversalRelayBoilerplate","labels_url":"https://api.github.com/repos/codefoundries/UniversalRelayBoilerplate/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/codefoundries/UniversalRelayBoilerplate/issues/32/comments","events_url":"https://api.github.com/repos/codefoundries/UniversalRelayBoilerplate/issues/32/events","html_url":"https://github.com/codefoundries/UniversalRelayBoilerplate/issues/32","id":152949904,"number":32,"title":"Initialise .env before attempting to access it","user":{"login":"tombull","id":3214864,"avatar_url":"https://avatars.githubusercontent.com/u/3214864?v=3","gravatar_id":"","url":"https://api.github.com/users/tombull","html_url":"https://github.com/tombull","followers_url":"https://api.github.com/users/tombull/followers","following_url":"https://api.github.com/users/tombull/following{/other_user}","gists_url":"https://api.github.com/users/tombull/gists{/gist_id}","starred_url":"https://api.github.com/users/tombull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombull/subscriptions","organizations_url":"https://api.github.com/users/tombull/orgs","repos_url":"https://api.github.com/users/tombull/repos","events_url":"https://api.github.com/users/tombull/events{/privacy}","received_events_url":"https://api.github.com/users/tombull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-04T07:55:44Z","updated_at":"2016-05-04T07:55:44Z","closed_at":null,"body":"When following the instructions at [Initial Project Setup On Local Machine](http://codefoundries.com/developer/rebar/development-setup.html), it instructs the user to run `npm install` before running `npm run setup-local`.\r\nUnfortunately, running `npm install` immediately after cloning the project results in the following error:\r\n\r\n```\r\n> babel-node ./scripts/build-schema.js\r\n\r\nbabel-relay-plugin-loader: using schema at [/Users/tom/projects/urbp/graphql/schema.json]\r\n{ Error: ENOENT: no such file or directory, open '.env'\r\n    at Error (native)\r\n    at Object.fs.openSync (fs.js:634:18)\r\n    at Object.fs.readFileSync (fs.js:502:33)\r\n    at Object.module.exports.config (/Users/tom/projects/urbp/node_modules/dotenv/lib/main.js:30:37)\r\n    at Object.<anonymous> (CassandraOptions.js:6:21)\r\n    at Module._compile (module.js:541:32)\r\n    at loader (/Users/tom/projects/urbp/node_modules/babel-register/lib/node.js:158:5)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/tom/projects/urbp/node_modules/babel-register/lib/node.js:168:7)\r\n    at Module.load (module.js:456:32)\r\n    at tryModuleLoad (module.js:415:12) errno: -2, code: 'ENOENT', syscall: 'open', path: '.env' }\r\n{ Error: ENOENT: no such file or directory, open '.env'\r\n    at Error (native)\r\n    at Object.fs.openSync (fs.js:634:18)\r\n    at Object.fs.readFileSync (fs.js:502:33)\r\n    at Object.module.exports.config (/Users/tom/projects/urbp/node_modules/dotenv/lib/main.js:30:37)\r\n    at Object.<anonymous> (log.js:7:21)\r\n    at Module._compile (module.js:541:32)\r\n    at loader (/Users/tom/projects/urbp/node_modules/babel-register/lib/node.js:158:5)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/tom/projects/urbp/node_modules/babel-register/lib/node.js:168:7)\r\n    at Module.load (module.js:456:32)\r\n    at tryModuleLoad (module.js:415:12) errno: -2, code: 'ENOENT', syscall: 'open', path: '.env' }\r\n{ Error: ENOENT: no such file or directory, open '.env'\r\n    at Error (native)\r\n    at Object.fs.openSync (fs.js:634:18)\r\n    at Object.fs.readFileSync (fs.js:502:33)\r\n    at Object.module.exports.config (/Users/tom/projects/urbp/node_modules/dotenv/lib/main.js:30:37)\r\n    at Object.<anonymous> (ObjectManagerBase.js:13:21)\r\n    at Module._compile (module.js:541:32)\r\n    at loader (/Users/tom/projects/urbp/node_modules/babel-register/lib/node.js:158:5)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/tom/projects/urbp/node_modules/babel-register/lib/node.js:168:7)\r\n    at Module.load (module.js:456:32)\r\n    at tryModuleLoad (module.js:415:12) errno: -2, code: 'ENOENT', syscall: 'open', path: '.env' }\r\n```\r\n\r\nThis is because the file `.env` has not been initialised later in the instruction `npm run setup-local`."}}