Constellation / ibrik

CoffeeScript meets Istanbul - code coverage tool for CoffeeScript
BSD 2-Clause "Simplified" License
79 stars 32 forks source link

Karma-coverage install error in Windows 7.0 #8

Closed vijtad closed 10 years ago

vijtad commented 10 years ago

When I tried to install Karma-coverage version 0.1.3, I get following error

ibrik@0.0.4 build C:\Users\AppData\Roaming\npm\node_modules\karma-covera ge\node_modules\ibrik make -f tools/task.mk build

'make' is not recognized as an internal or external command, operable program or batch file.

npm ERR! ibrik@0.0.4 build: make -f tools/task.mk build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ibrik@0.0.4 build script. npm ERR! This is most likely a problem with the ibrik package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! make -f tools/task.mk build npm ERR! You can get their info via: npm ERR! npm owner ls ibrik npm ERR! There is likely additional logging output above. npm ERR! System Windows_NT 6.1.7600 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "run-script" "build" npm ERR! cwd C:\Users\Vijay\AppData\Roaming\npm\node_modules\karma-coverage\node _modules\ibrik npm ERR! node -v v0.10.22 npm ERR! npm -v 1.3.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Users\Vijay\AppData\Roaming\npm\node_modules\karma-coverage\node _modules\ibrik\npm-debug.log npm ERR! not ok code 0 npm ERR! ibrik@0.0.4 install: npm run-script build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ibrik@0.0.4 install script. npm ERR! This is most likely a problem with the ibrik package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run-script build npm ERR! You can get their info via: npm ERR! npm owner ls ibrik npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7600 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "karma-coverage" npm ERR! cwd C:\Users\Vijay\karma-coverage-karma-0.11\karma-coverage-karma-0.11 npm ERR! node -v v0.10.22 npm ERR! npm -v 1.3.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Users\Vijay\karma-coverage-karma-0.11\karma-coverage-karma-0.11\ npm-debug.log npm ERR! not ok code 0

This is because of ibrik dependency specifying its dep through git protocol: https://github.com/Constellation/ibrik/blob/master/package.json

I think they should use https rather than git, you can file issue at https://github.com/Constellation/ibrik/issues/new That said, it installs fine on Mac/Linux.

In the meantime, you can install previous version of karma-coverage - npm install -g karma-coverage@0.1.2 (as long as you don't need to generate coverage for coffee script, which has been added in 0.1.3).

Constellation commented 10 years ago

Ah thanks, I'll investigate it.

4kochi commented 10 years ago

In have the same error on Win7/x64.

Constellation commented 10 years ago

I've changed git to git+https and remove install script entry. I'll setup windows environment and fix it.

Guuz commented 10 years ago

:+1: same issue here (windows 8.1) A fix is expected in the comming days?

Constellation commented 10 years ago

@Guuz Yeah, I've now constructed my windows environment and this has reproduced. I'll fix it soon. Sorry for the inconvenience

Constellation commented 10 years ago

@4kochi @Guuz @dnutels @sorich87

I've fixed and released 1.0.1! Super thanks for your bug report!

Constellation commented 10 years ago

ref karma-runner/karma-coverage#40

Guuz commented 10 years ago

It works! :+1: Thanks a bunch for the quick fix!