{"action":"created","issue":{"url":"https://api.github.com/repos/yeoman/generator-angular/issues/1210","labels_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1210/labels{/name}","comments_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1210/comments","events_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1210/events","html_url":"https://github.com/yeoman/generator-angular/issues/1210","id":117025040,"number":1210,"title":"Unable to execute grunt test in the YO tutorial","user":{"login":"dematic-rodrigo-silveira","id":10092790,"avatar_url":"https://avatars.githubusercontent.com/u/10092790?v=3","gravatar_id":"","url":"https://api.github.com/users/dematic-rodrigo-silveira","html_url":"https://github.com/dematic-rodrigo-silveira","followers_url":"https://api.github.com/users/dematic-rodrigo-silveira/followers","following_url":"https://api.github.com/users/dematic-rodrigo-silveira/following{/other_user}","gists_url":"https://api.github.com/users/dematic-rodrigo-silveira/gists{/gist_id}","starred_url":"https://api.github.com/users/dematic-rodrigo-silveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dematic-rodrigo-silveira/subscriptions","organizations_url":"https://api.github.com/users/dematic-rodrigo-silveira/orgs","repos_url":"https://api.github.com/users/dematic-rodrigo-silveira/repos","events_url":"https://api.github.com/users/dematic-rodrigo-silveira/events{/privacy}","received_events_url":"https://api.github.com/users/dematic-rodrigo-silveira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-15T22:53:39Z","updated_at":"2015-11-16T19:58:27Z","closed_at":null,"body":"I'm an experienced software engineer, have been using AngularJS for a few years, mostly without any supporting development framework. Earlier this year I adopted [Lineman.js](http://linemanjs.com/) and, although I've enjoyed using it, it has a few shortcomings that warranted me to consider alternatives: a) it is not that simple to customize, it is written most in _coffee_, and I have no desired to learn _coffee_. \r\n\r\nA colleague suggested I give [Yeoman](http://yeoman.io/) another try, which I had overruled in favor of [Lineman.js](http://linemanjs.com/); unfortunately, I'm stuck on its tutorial [step 8](http://yeoman.io/codelab/write-unit-tests.html), whereby _karma_ is not found, as described below. Thanks in advance for any suggestions anyone might have to help me with this.\r\n\r\n### STEPS to Reproduce\r\n * Execute the tutorial's steps 1-8\r\n * Resolve the peer dependencies manually\r\n * Execute _grunt test_ \r\n\r\n### Observed Behavior\r\nThe following output is shown:\r\n```bash\r\n[ mytodo ]$  grunt test\r\nRunning \"clean:server\" (clean) task\r\n>> 1 path cleaned.\r\n\r\nRunning \"wiredep:app\" (wiredep) task\r\n\r\nRunning \"wiredep:test\" (wiredep) task\r\n\r\nRunning \"concurrent:test\" (concurrent) task\r\n    \r\n    Running \"copy:styles\" (copy) task\r\n    Copied 1 file\r\n    \r\n    Done, without errors.\r\n    \r\n    \r\n    Execution Time (2015-11-15 22:25:00 UTC)\r\n    loading tasks               109ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 81%\r\n    loading grunt-contrib-copy   12ms  ▇▇▇▇ 9%\r\n    copy:styles                  13ms  ▇▇▇▇ 10%\r\n    Total 134ms\r\n    \r\nRunning \"postcss:server\" (postcss) task\r\n>> 1 processed stylesheet created.\r\n\r\nRunning \"postcss:dist\" (postcss) task\r\n>> 1 processed stylesheet created.\r\n\r\nRunning \"connect:test\" (connect) task\r\nStarted connect web server on http://localhost:9001\r\nLoading \"grunt-karma.js\" tasks...ERROR\r\n>> Error: Cannot find module 'karma'\r\nWarning: Task \"karma\" failed. Use --force to continue.\r\n\r\nAborted due to warnings.\r\n\r\n\r\nExecution Time (2015-11-15 22:25:00 UTC)\r\nloading tasks                  110ms  ▇▇▇▇▇▇▇▇▇▇▇ 12%\r\nwiredep:app                    107ms  ▇▇▇▇▇▇▇▇▇▇▇ 12%\r\nwiredep:test                    12ms  ▇▇ 1%\r\nconcurrent:test                432ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 48%\r\nloading grunt-postcss           37ms  ▇▇▇▇ 4%\r\npostcss:server                 108ms  ▇▇▇▇▇▇▇▇▇▇▇ 12%\r\nloading grunt-contrib-connect   48ms  ▇▇▇▇▇ 5%\r\nconnect:test                    19ms  ▇▇ 2%\r\nTotal 900ms\r\n```\r\n**Please observe the karma not found log entry above**.\r\n\r\n### Note\r\nIn trying to solve this problem I found a SO reference [Cannot find module 'karma' while using grunt](http://stackoverflow.com/questions/19203051/cannot-find-module-karma-while-using-grunt). It recommends re-installing *yo generator-karma*, which I did; its output below, run immediately before running _grunt test_ suggests my YO installation is healthy:\r\n```bash\r\n[ mytodo ]$  sudo npm i -g yo generator-karma\r\n/usr/local/bin/yo -> /usr/local/lib/node_modules/yo/lib/cli.js\r\n\r\n> yo@1.5.0 postinstall /usr/local/lib/node_modules/yo\r\n> yodoctor\r\n\r\n\r\nYeoman Doctor\r\nRunning sanity checks on your system\r\n\r\n✔ Global configuration file is valid\r\n✔ NODE_PATH matches the npm root\r\n✔ Node.js version\r\n✔ No .bowerrc file in home directory\r\n✔ No .yo-rc.json file in home directory\r\n✔ npm version\r\n\r\nEverything looks all right!\r\n/usr/local/lib\r\n├── generator-karma@1.0.0 \r\n└── yo@1.5.0 \r\n\r\n[ mytodo ]\r\n```\r\n\r\n### Expected Behavior\r\nThe _grunt test_ output must reflect what is shown in the tutorial:\r\n<img width=\"830\" alt=\"screen shot 2015-11-15 at 2 52 33 pm\" src=\"https://cloud.githubusercontent.com/assets/10092790/11171576/a3f36d8a-8ba8-11e5-9eb8-fbf1f7f340d4.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/yeoman/generator-angular/issues/comments/157152726","html_url":"https://github.com/yeoman/generator-angular/issues/1210#issuecomment-157152726","issue_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1210","id":157152726,"user":{"login":"eddiemonge","id":127535,"avatar_url":"https://avatars.githubusercontent.com/u/127535?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiemonge","html_url":"https://github.com/eddiemonge","followers_url":"https://api.github.com/users/eddiemonge/followers","following_url":"https://api.github.com/users/eddiemonge/following{/other_user}","gists_url":"https://api.github.com/users/eddiemonge/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiemonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiemonge/subscriptions","organizations_url":"https://api.github.com/users/eddiemonge/orgs","repos_url":"https://api.github.com/users/eddiemonge/repos","events_url":"https://api.github.com/users/eddiemonge/events{/privacy}","received_events_url":"https://api.github.com/users/eddiemonge/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T19:58:27Z","updated_at":"2015-11-16T19:58:27Z","body":"First off, excellent bug report!\r\n\r\nIf generator-karma wasn't installed when you generated the project, then the necessary things might not have been installed as well. Check you package.json for karma related things. I feel like they might not be there. If they aren't, try generating a new project and test that."}}