{"action":"created","issue":{"url":"https://api.github.com/repos/lostintangent/az-login/issues/9","repository_url":"https://api.github.com/repos/lostintangent/az-login","labels_url":"https://api.github.com/repos/lostintangent/az-login/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/lostintangent/az-login/issues/9/comments","events_url":"https://api.github.com/repos/lostintangent/az-login/issues/9/events","html_url":"https://github.com/lostintangent/az-login/issues/9","id":234985541,"number":9,"title":"Example error","user":{"login":"bradygaster","id":486363,"avatar_url":"https://avatars1.githubusercontent.com/u/486363?v=3","gravatar_id":"","url":"https://api.github.com/users/bradygaster","html_url":"https://github.com/bradygaster","followers_url":"https://api.github.com/users/bradygaster/followers","following_url":"https://api.github.com/users/bradygaster/following{/other_user}","gists_url":"https://api.github.com/users/bradygaster/gists{/gist_id}","starred_url":"https://api.github.com/users/bradygaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradygaster/subscriptions","organizations_url":"https://api.github.com/users/bradygaster/orgs","repos_url":"https://api.github.com/users/bradygaster/repos","events_url":"https://api.github.com/users/bradygaster/events{/privacy}","received_events_url":"https://api.github.com/users/bradygaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2017-06-10T07:02:29Z","updated_at":"2017-06-13T15:13:59Z","closed_at":null,"body":"If I clone the repo, `npm install`, and then f5 in vscode i get the following error. I'll debug a little more (the debugger actually doesn't attach). Also get same error when I run `npm test` at the command line. \r\n\r\n```\r\nbradygaster@Bradys-MacBook-Pro:~/sources/az-login [master ≡]$ npm test\r\n\r\n> az-login@0.2.2 test /Users/bradygaster/sources/az-login\r\n> node ./examples\r\n\r\n/Users/bradygaster/sources/az-login/examples/index.js:4\r\n!async function () {\r\n       ^^^^^^^^\r\nSyntaxError: Unexpected token function\r\n    at Object.exports.runInThisContext (vm.js:78:16)\r\n    at Module._compile (module.js:543:28)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:488:32)\r\n    at tryModuleLoad (module.js:447:12)\r\n    at Function.Module._load (module.js:439:3)\r\n    at Module.runMain (module.js:605:10)\r\n    at run (bootstrap_node.js:420:7)\r\n    at startup (bootstrap_node.js:139:9)\r\n    at bootstrap_node.js:535:3\r\nnpm ERR! Test failed.  See above for more details.\r\n```"},"comment":{"url":"https://api.github.com/repos/lostintangent/az-login/issues/comments/308149586","html_url":"https://github.com/lostintangent/az-login/issues/9#issuecomment-308149586","issue_url":"https://api.github.com/repos/lostintangent/az-login/issues/9","id":308149586,"user":{"login":"bradygaster","id":486363,"avatar_url":"https://avatars1.githubusercontent.com/u/486363?v=3","gravatar_id":"","url":"https://api.github.com/users/bradygaster","html_url":"https://github.com/bradygaster","followers_url":"https://api.github.com/users/bradygaster/followers","following_url":"https://api.github.com/users/bradygaster/following{/other_user}","gists_url":"https://api.github.com/users/bradygaster/gists{/gist_id}","starred_url":"https://api.github.com/users/bradygaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradygaster/subscriptions","organizations_url":"https://api.github.com/users/bradygaster/orgs","repos_url":"https://api.github.com/users/bradygaster/repos","events_url":"https://api.github.com/users/bradygaster/events{/privacy}","received_events_url":"https://api.github.com/users/bradygaster/received_events","type":"User","site_admin":false},"created_at":"2017-06-13T15:13:59Z","updated_at":"2017-06-13T15:13:59Z","body":"@lostintangent i tried it and here's what i got. note, i deleted the `.azure` folder before i tried this to make sure I didn't have anything lying around. \r\n\r\n```json\r\n{ Error: ENOENT: no such file or directory, open '/Users/bradygaster/.azure/azloginServicePrincipal.json'\r\n    at Object.fs.openSync (fs.js:558:18)\r\n    at Object.fs.writeFileSync (fs.js:1223:33)\r\n    at Object.writeFileSync (/Users/bradygaster/sources/az-login/node_modules/jsonfile/index.js:115:13)\r\n    at roleAssignments.create.then (/Users/bradygaster/sources/az-login/index.js:159:29)\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n  errno: -2,\r\n  code: 'ENOENT',\r\n  syscall: 'open',\r\n  path: '/Users/bradygaster/.azure/azloginServicePrincipal.json' }\r\n```"}}
{"actor":{"display_login":"bradygaster"}}