{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/5116","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/5116/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/5116/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/5116/events","html_url":"https://github.com/angular/angular-cli/issues/5116","id":210888030,"number":5116,"title":"Cant use NG","user":{"login":"dertuerke","id":2199151,"avatar_url":"https://avatars0.githubusercontent.com/u/2199151?v=3","gravatar_id":"","url":"https://api.github.com/users/dertuerke","html_url":"https://github.com/dertuerke","followers_url":"https://api.github.com/users/dertuerke/followers","following_url":"https://api.github.com/users/dertuerke/following{/other_user}","gists_url":"https://api.github.com/users/dertuerke/gists{/gist_id}","starred_url":"https://api.github.com/users/dertuerke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dertuerke/subscriptions","organizations_url":"https://api.github.com/users/dertuerke/orgs","repos_url":"https://api.github.com/users/dertuerke/repos","events_url":"https://api.github.com/users/dertuerke/events{/privacy}","received_events_url":"https://api.github.com/users/dertuerke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-02-28T19:56:32Z","updated_at":"2017-03-02T05:16:33Z","closed_at":null,"body":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n### OS?\r\n> Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\r\n\r\nMac OSX Sierra\r\n\r\n### Versions.\r\n> Please run `ng --version`. If there's nothing outputted, please run in a Terminal: `node --version` and paste the result here:\r\n\r\nNode: 7.6.0\r\n\r\n\r\n### Repro steps.\r\n> Was this an app that wasn't created using the CLI? What change did you do on your code? etc.\r\n\r\nI cant use ng --version, if i use yarn global add.\r\n\r\n\r\n### The log given by the failure.\r\n> Normally this include a stack trace and some more information.\r\n\r\n/Users/burak/.config/yarn/global/node_modules/@angular/cli/bin/ng:95\r\n  const hasOldDevDep = !!packageJsonProject.devDependencies['angular-cli'];\r\n                                                           ^\r\n\r\nTypeError: Cannot read property 'angular-cli' of undefined\r\n    at Object.<anonymous> (/Users/burak/.config/yarn/global/node_modules/@angular/cli/bin/ng:95:60)\r\n    at Module._compile (module.js:571:32)\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:422:7)\r\n    at startup (bootstrap_node.js:143:9)\r\n    at bootstrap_node.js:537:3\r\n\r\n### Mention any other details that might be useful.\r\n\r\n> ---------------------------------------------------------------\r\n> Thanks! We'll be in touch soon.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/283558821","html_url":"https://github.com/angular/angular-cli/issues/5116#issuecomment-283558821","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/5116","id":283558821,"user":{"login":"clrajapaksha","id":5388040,"avatar_url":"https://avatars2.githubusercontent.com/u/5388040?v=3","gravatar_id":"","url":"https://api.github.com/users/clrajapaksha","html_url":"https://github.com/clrajapaksha","followers_url":"https://api.github.com/users/clrajapaksha/followers","following_url":"https://api.github.com/users/clrajapaksha/following{/other_user}","gists_url":"https://api.github.com/users/clrajapaksha/gists{/gist_id}","starred_url":"https://api.github.com/users/clrajapaksha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clrajapaksha/subscriptions","organizations_url":"https://api.github.com/users/clrajapaksha/orgs","repos_url":"https://api.github.com/users/clrajapaksha/repos","events_url":"https://api.github.com/users/clrajapaksha/events{/privacy}","received_events_url":"https://api.github.com/users/clrajapaksha/received_events","type":"User","site_admin":false},"created_at":"2017-03-02T05:16:33Z","updated_at":"2017-03-02T05:16:33Z","body":"I resolved the issue by doing following things,\r\nuninstall node\r\nreinstall node\r\nnpm cache clear\r\nnpm install -g @angular/cli\r\nng new myapp"}}
{"actor":{"display_login":"clrajapaksha"}}