I had nodejs and karma installed on a 32-bit windows seven box, and it was working fine.
I'm now setting up a 64-bit windows seven box. I ran "npm install -g" in the directory with my "package.json" file.
It installed a lot of packages, but it seemed to get stuck at some point. Here's the end of the output:
npm http 304 https://registry.npmjs.org/commander
> ws@0.4.31 install C:\Users\=myuid=\AppData\Roaming\npm\node_modules\=myuid=\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
C:\Users\=myuid=\AppData\Roaming\npm\node_modules\=myuid=\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
It is hung here.
Here is my "package.json":
{
"name": "=myuid=",
"version": "0.0.0",
"description": "ERROR: No README.md file found!",
"main": "karma.conf.js",
"dependencies": {
"karma-firefox-launcher": "~0.1.0",
"karma-coffee-preprocessor": "~0.1.0",
"karma-phantomjs-launcher": "~0.1.0",
"karma-jasmine": "~0.1.3",
"karma": "~0.10.2",
"karma-coverage": "~0.1.0",
"karma-html2js-preprocessor": "~0.1.0",
"karma-script-launcher": "~0.1.0",
"karma-requirejs": "~0.1.0",
"karma-chrome-launcher": "~0.1.0"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": "",
"author": "",
"license": "BSD"
}
What could be the problem here? Anything else I should show here?
Update:
I realized a couple of things that I should have done differently, but I'm still stuck, although with a slightly different problem.
I forgot that running "npm install -g" requires running the shell as administrator, and it's probably not a good idea to run this in a Cygwin bash shell on Windows. I reran "npm install -g karma --force" in a "cmd" run by administrator. This completes without apparent error, but at the end it does not install the "karma.cmd" script in :%HOME%\AppData\Roaming\npm".