{"action":"created","issue":{"url":"https://api.github.com/repos/piotrek-k/generator-dotnetcore-angular2-starterkit/issues/5","repository_url":"https://api.github.com/repos/piotrek-k/generator-dotnetcore-angular2-starterkit","labels_url":"https://api.github.com/repos/piotrek-k/generator-dotnetcore-angular2-starterkit/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/piotrek-k/generator-dotnetcore-angular2-starterkit/issues/5/comments","events_url":"https://api.github.com/repos/piotrek-k/generator-dotnetcore-angular2-starterkit/issues/5/events","html_url":"https://github.com/piotrek-k/generator-dotnetcore-angular2-starterkit/issues/5","id":185679869,"number":5,"title":"Installation error","user":{"login":"kmpelectronics","id":10406299,"avatar_url":"https://avatars.githubusercontent.com/u/10406299?v=3","gravatar_id":"","url":"https://api.github.com/users/kmpelectronics","html_url":"https://github.com/kmpelectronics","followers_url":"https://api.github.com/users/kmpelectronics/followers","following_url":"https://api.github.com/users/kmpelectronics/following{/other_user}","gists_url":"https://api.github.com/users/kmpelectronics/gists{/gist_id}","starred_url":"https://api.github.com/users/kmpelectronics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmpelectronics/subscriptions","organizations_url":"https://api.github.com/users/kmpelectronics/orgs","repos_url":"https://api.github.com/users/kmpelectronics/repos","events_url":"https://api.github.com/users/kmpelectronics/events{/privacy}","received_events_url":"https://api.github.com/users/kmpelectronics/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-27T14:11:51Z","updated_at":"2016-10-27T14:35:23Z","closed_at":null,"body":"I can't install this template. The error is:\r\n\r\nnpm WARN Angular2Spa@0.0.0 No license field.\r\n'bower' is not recognized as an internal or external command,\r\noperable program or batch file.\r\nC:\\Users\\Plamen\\AppData\\Roaming\\npm\\node_modules\\generator-dotnetcore-angular2-starterkit\\generators\\app\\index.js:140\r\n                        callback: function () { afterInstallingDependencies(context, this.props); }\r\n                                                                                         ^\r\n\r\nTypeError: Cannot read property 'props' of undefined\r\n    at installDependencies.callback (C:\\Users\\Plamen\\AppData\\Roaming\\npm\\node_modules\\generator-dotnetcore-angular2-starterkit\\generators\\app\\index.js:140:90)\r\n    at C:\\Users\\Plamen\\AppData\\Roaming\\npm\\node_modules\\generator-dotnetcore-angular2-starterkit\\node_modules\\async\\lib\\async.js:726:13\r\n    at C:\\Users\\Plamen\\AppData\\Roaming\\npm\\node_modules\\generator-dotnetcore-angular2-starterkit\\node_modules\\async\\lib\\async.js:52:16\r\n    at done (C:\\Users\\Plamen\\AppData\\Roaming\\npm\\node_modules\\generator-dotnetcore-angular2-starterkit\\node_modules\\async\\lib\\async.js:241:17)\r\n    at C:\\Users\\Plamen\\AppData\\Roaming\\npm\\node_modules\\generator-dotnetcore-angular2-starterkit\\node_modules\\async\\lib\\async.js:44:16\r\n    at ChildProcess.<anonymous> (C:\\Users\\Plamen\\AppData\\Roaming\\npm\\node_modules\\generator-dotnetcore-angular2-starterkit\\node_modules\\async\\lib\\async.js:723:17)\r\n    at ChildProcess.<anonymous> (C:\\Users\\Plamen\\AppData\\Roaming\\npm\\node_modules\\generator-dotnetcore-angular2-starterkit\\node_modules\\async\\lib\\async.js:167:37)\r\n    at emitOne (events.js:77:13)\r\n    at ChildProcess.emit (events.js:169:7)\r\n    at ChildProcess.cp.emit (C:\\Users\\Plamen\\AppData\\Roaming\\npm\\node_modules\\generator-dotnetcore-angular2-starterkit\\node_modules\\cross-spawn-async\\lib\\enoent.js:33:37)"},"comment":{"url":"https://api.github.com/repos/piotrek-k/generator-dotnetcore-angular2-starterkit/issues/comments/256659408","html_url":"https://github.com/piotrek-k/generator-dotnetcore-angular2-starterkit/issues/5#issuecomment-256659408","issue_url":"https://api.github.com/repos/piotrek-k/generator-dotnetcore-angular2-starterkit/issues/5","id":256659408,"user":{"login":"piotrek-k","id":5506878,"avatar_url":"https://avatars.githubusercontent.com/u/5506878?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrek-k","html_url":"https://github.com/piotrek-k","followers_url":"https://api.github.com/users/piotrek-k/followers","following_url":"https://api.github.com/users/piotrek-k/following{/other_user}","gists_url":"https://api.github.com/users/piotrek-k/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrek-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrek-k/subscriptions","organizations_url":"https://api.github.com/users/piotrek-k/orgs","repos_url":"https://api.github.com/users/piotrek-k/repos","events_url":"https://api.github.com/users/piotrek-k/events{/privacy}","received_events_url":"https://api.github.com/users/piotrek-k/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T14:35:23Z","updated_at":"2016-10-27T14:35:23Z","body":"Hi.\r\nThanks for reporting this issue. I can't believe there are still some errors, I've tested it thousand times before publishing ;(\r\n\r\nI don't have time now to push an update, but I see possible fix for this issue:\r\n\r\nI'm not sure if it will work, but try it if you want:\r\n1. Go to place where you keep installation files of this generator. In my case, I found it here: `C:\\Program Files\\nodejs\\node_modules\\generator-dotnetcore-angular2-starterkit\\generators\\app`\r\n2. Find there equivalent of this file: [index.js](https://github.com/piotrek-k/generator-dotnetcore-angular2-starterkit/blob/master/generators/app/index.js)\r\n3. Find line that was mentioned in error: [it should look like this](https://github.com/piotrek-k/generator-dotnetcore-angular2-starterkit/blob/master/generators/app/index.js#L140)\r\n4. Change `callback: function () { afterInstallingDependencies(context, this.props); }` to `callback: function () { afterInstallingDependencies(context, context.props); }` or `callback: function () { afterInstallingDependencies(context); }`\r\n5. Run generator again.\r\n\r\nPlease, let me know if it worked"}}
{"actor":{"display_login":"piotrek-k"}}