{"action":"created","issue":{"url":"https://api.github.com/repos/karma-runner/karma/issues/1691","labels_url":"https://api.github.com/repos/karma-runner/karma/issues/1691/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma/issues/1691/comments","events_url":"https://api.github.com/repos/karma-runner/karma/issues/1691/events","html_url":"https://github.com/karma-runner/karma/issues/1691","id":115047366,"number":1691,"title":"Visual Studio Errors while installing karma","user":{"login":"op1ekun","id":711524,"avatar_url":"https://avatars.githubusercontent.com/u/711524?v=3","gravatar_id":"","url":"https://api.github.com/users/op1ekun","html_url":"https://github.com/op1ekun","followers_url":"https://api.github.com/users/op1ekun/followers","following_url":"https://api.github.com/users/op1ekun/following{/other_user}","gists_url":"https://api.github.com/users/op1ekun/gists{/gist_id}","starred_url":"https://api.github.com/users/op1ekun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/op1ekun/subscriptions","organizations_url":"https://api.github.com/users/op1ekun/orgs","repos_url":"https://api.github.com/users/op1ekun/repos","events_url":"https://api.github.com/users/op1ekun/events{/privacy}","received_events_url":"https://api.github.com/users/op1ekun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T12:59:20Z","updated_at":"2015-12-04T01:44:59Z","closed_at":"2015-11-04T18:50:57Z","body":"Hi guys,\r\n\r\nI'm running `npm install karma --save-dev` from my git bash and this is what I get some message about building a solution (?):\r\n\r\n```\r\nC:\\workspace\\npmTest\\node_modules\\karma\\node_modules\\socket.io\\node_modules\\engine.io\\node_modules\\ws\\node_modules\\utf-8-validate>if not defined npm_config_node_gyp (node \"C:\\bin\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild )  else (node  rebuild )\r\nBuilding the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\r\n```\r\nfollowed by a list of errors:\r\n```\r\nC:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\V140\\Microsoft.CppBuild.targets(366,5): \r\nwarning MSB8003: Could not find WindowsSDKDir variable f rom the registry. \r\nTargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\\workspace\\npmTest\\node_modules\\karma\\node_modules\\socket.io\\node_modules\\engine.io\\node_modules\\ws\\node_modules\\bufferutil\\build\\bufferutil.vcxproj]\r\n\r\nTRACKER : error TRK0005: Failed to locate: \"CL.exe\". \r\nThe system cannot find the file specified. [C:\\workspace\\npmTest\\node_modules\\karma\\node_modu les\\socket.io\\node_modules\\engine.io\\node_modules\\ws\\node_modules\\bufferutil\\build\\bufferutil.vcxproj]\r\n\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onExit (C:\\bin\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\build.js:270:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Windows_NT 10.0.10240\r\ngyp ERR! command \"C:\\\\bin\\\\nodejs\\\\node.exe\" \"C:\\\\bin\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd C:\\workspace\\npmTest\\node_modules\\karma\\node_modules\\socket.io\\node_modules\\engine.io\\node_modules\\ws\\node_modules\\utf-8-validate\r\ngyp ERR! node -v v4.2.0\r\ngyp ERR! node-gyp -v v3.0.3\r\ngyp ERR! not ok\r\n```\r\n\r\nI have just installed Visual Studio Community 2015, but what it has to do with a NPM PACKAGE?\r\nI couldn't find anything about this particular issue in the web.\r\n\r\nFortunately Karma seems to run fine, but this is very confusing.\r\n\r\nEnv:\r\nWindows 10\r\ngit bash\r\nnode.js 4.2.0\r\nKarma 0.13.15"},"comment":{"url":"https://api.github.com/repos/karma-runner/karma/issues/comments/161847556","html_url":"https://github.com/karma-runner/karma/issues/1691#issuecomment-161847556","issue_url":"https://api.github.com/repos/karma-runner/karma/issues/1691","id":161847556,"user":{"login":"MoffDo","id":16144307,"avatar_url":"https://avatars.githubusercontent.com/u/16144307?v=3","gravatar_id":"","url":"https://api.github.com/users/MoffDo","html_url":"https://github.com/MoffDo","followers_url":"https://api.github.com/users/MoffDo/followers","following_url":"https://api.github.com/users/MoffDo/following{/other_user}","gists_url":"https://api.github.com/users/MoffDo/gists{/gist_id}","starred_url":"https://api.github.com/users/MoffDo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoffDo/subscriptions","organizations_url":"https://api.github.com/users/MoffDo/orgs","repos_url":"https://api.github.com/users/MoffDo/repos","events_url":"https://api.github.com/users/MoffDo/events{/privacy}","received_events_url":"https://api.github.com/users/MoffDo/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T01:44:59Z","updated_at":"2015-12-04T01:44:59Z","body":"Hello and THANK YOU!\r\n\r\nHere's what I had to do to solve my problem:\r\n\r\nI tried to install Visual C++ tools package, but I couldn't due to \"important updates\".\r\nAfter restarting the system and installing those updates, I could install, as you said, Visual C++ tools package from my Visual Studio Community 2015.\r\n(Attempting to open a new Visual C++ project forces you to install it, because that package is not installed by default)\r\n\r\nAfter the installation, I tried to run 'grunt test' (using Karma) on my Yeoman project workspace using Angular generator.\r\n\r\nHowever phantomjs was not installed properly, so I reinstalled it using:\r\nnpm install phantomjs\r\n\r\nThen I tried to run the grunt test and it worked successfully!!\r\n\r\n-- Done, without errors. --\r\n\r\nI'm so glad you posted this! Thank you very very much!"}}