{"id":32,"date":"2014-03-20T11:59:46","date_gmt":"2014-03-20T11:59:46","guid":{"rendered":"http:\/\/blog.catalystlogic.com.au\/?p=32"},"modified":"2026-03-01T01:44:18","modified_gmt":"2026-02-28T14:44:18","slug":"angular-phonecat-tutorial-karma-install-error","status":"publish","type":"post","link":"http:\/\/54.253.247.134\/?p=32","title":{"rendered":"angular-phonecat tutorial karma install error"},"content":{"rendered":"<p>Getting into the <a href=\"http:\/\/docs.angularjs.org\/tutorial\">angular phonecat demo<\/a>, in windows, and early on hit a snag.<\/p>\n<p>This one was from trying to update <a href=\"http:\/\/karma-runner.github.io\/0.12\/index.html\">karma<\/a>, a TDD framework for angular powered by node.js<\/p>\n<p>Seemed pretty straight forward from what I have learnt from node so far.<\/p>\n<pre class=\"toolbar:2 lang:amigados decode:true\">npm install karma<\/pre>\n<p>Nothing like error messages from an unfamiliar environment to make you sit up in your chair.<\/p>\n<pre class=\"toolbar:2 lang:amigados decode:true\">npm ERR! peerinvalid The package karma-requirejs does not satisfy its siblings'\npeerDependencies requirements!\nnpm ERR! peerinvalid Peer karma@0.10.10 wants karma-requirejs@~0.2.0\n\nnpm ERR! System Windows_NT 6.1.7601\nnpm ERR! command \"C:\\\\Program Files\\\\nodejs\\\\\\\\node.exe\" \"C:\\\\Program Files\\\\nod\nejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\"\nnpm ERR! cwd C:\\Dev\\angularTutorial\\angular-phonecat\\scripts\nnpm ERR! node -v v0.10.26\nnpm ERR! npm -v 1.4.3\nnpm ERR! code EPEERINVALID\nnpm ERR!\nnpm ERR! Additional logging details can be found in:\nnpm ERR!     C:\\Dev\\angularTutorial\\angular-phonecat\\scripts\\npm-debug.log\nnpm ERR! not ok code 0<\/pre>\n<p>After I quick google search, with nothing initially, I realised I have some something really weird, that caused a error the likes of which no one has ever seen, or the solution was starting me in the face.<\/p>\n<pre class=\"toolbar:2 lang:amigados decode:true\">npm ERR! peerinvalid Peer karma@0.10.10 wants karma-requirejs@~0.2.0<\/pre>\n<p>...like that.<\/p>\n<pre class=\"toolbar:2 lang:amigados decode:true\">npm install karma-requirejs<\/pre>\n<p>Karma then installed.<\/p>\n<p>However, then the test.bat as part of the angular tutorial, which runs the karma command in DOS, returned this old favourite.<\/p>\n<pre class=\"toolbar:2 lang:amigados decode:true\">'karma' is not recognized as an internal or external command,\noperable program or batch file.<\/pre>\n<p>Before clogging up my PATH variable, the -g (--global) variable in npm install came to mind.<\/p>\n<p>However this did not work, even after first uninstalling the package.<\/p>\n<p>Though, this time a\u00a0\u00a0<a href=\"http:\/\/stackoverflow.com\/questions\/20800933\/running-karma-after-installation-results-in-karma-is-not-recognized-as-an-inte\">Stackoverflow answer<\/a>\u00a0at the top of google let me know that at least this time I was not so alone.<\/p>\n<pre class=\"toolbar:2 lang:amigados decode:true\">npm install -g karma-cli<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Getting into the angular phonecat demo, in windows, and early on hit a snag. This one was from trying to update karma, a TDD framework for angular powered by node.js Seemed pretty straight forward from what I have learnt from node so far. npm install karma Nothing like error messages from an unfamiliar environment to <a class=\"read-more\" href=\"http:\/\/54.253.247.134\/?p=32\">...continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,14],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-angular-js","category-node-js"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":1,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":241,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions\/241"}],"wp:attachment":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}