npm install -g jscoverage fails #10

JamesKyburz opened this Issue Mar 11, 2012 · 2 comments


None yet

3 participants


I am using gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) on Lion

➜ node-jscoverage git:(master) ✗ node -v
➜ node-jscoverage git:(master) ✗ npm -v

When I run npm install -g jscoverage I get

usr/local/Cellar/node/0.6.10/include/node/v8.h:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘v8’
In file included from /usr/local/Cellar/node/0.6.10/include/node/node.h:67,
from jscoverage.c:34:
/usr/local/Cellar/node/0.6.10/include/node/node_object_wrap.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘node’
In file included from jscoverage.c:34:
/usr/local/Cellar/node/0.6.10/include/node/node.h:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘node’
jscoverage.c:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘namespace’
jscoverage.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘namespace’
jscoverage.c:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘namespace’
jscoverage.c: In function ‘proc_msg_string’:
jscoverage.c:204: warning: function returns address of local variable
jscoverage.c: At top level:
jscoverage.c:207: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘Jscoverage’
jscoverage.c:293: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘<’ token
jscoverage.c:295: error: expected identifier or ‘(’ before string constant
make[2]: *** [jscoverage.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Same problem here. Any insight into this? Has the original library been updated?


You don't use npm to install this software. You want to git clone this repo locally and then do the ./configure && make && make install dance.

@JamesKyburz JamesKyburz closed this Oct 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment