Open TheNightRider12 opened 7 years ago
Bump this up. I have the same issue
bumpy
edit: this is a problem with 4.4.7 node, i was using it for some old project but you should update
Having the same problem with Node ^6.10.0
npm install -g node-gyp
solved this particular problem, but the node-gyp rebuild seems to fail also.
> node-gyp rebuild
CC(target) Release/obj.target/zlib/vendor/zlib/adler32.o
CC(target) Release/obj.target/zlib/vendor/zlib/compress.o
CC(target) Release/obj.target/zlib/vendor/zlib/crc32.o
CC(target) Release/obj.target/zlib/vendor/zlib/deflate.o
CC(target) Release/obj.target/zlib/vendor/zlib/gzclose.o
CC(target) Release/obj.target/zlib/vendor/zlib/gzlib.o
CC(target) Release/obj.target/zlib/vendor/zlib/gzread.o
CC(target) Release/obj.target/zlib/vendor/zlib/gzwrite.o
CC(target) Release/obj.target/zlib/vendor/zlib/infback.o
CC(target) Release/obj.target/zlib/vendor/zlib/inffast.o
CC(target) Release/obj.target/zlib/vendor/zlib/inflate.o
../vendor/zlib/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
~~~ ^
1 warning generated.
CC(target) Release/obj.target/zlib/vendor/zlib/inftrees.o
CC(target) Release/obj.target/zlib/vendor/zlib/trees.o
CC(target) Release/obj.target/zlib/vendor/zlib/uncompr.o
CC(target) Release/obj.target/zlib/vendor/zlib/zutil.o
LIBTOOL-STATIC Release/zlib.a
CXX(target) Release/obj.target/erlpack/js/erlpack.o
In file included from ../js/erlpack.cc:3:
../js/decoder.h:9:10: fatal error: 'cinttypes' file not found
#include <cinttypes>
^~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/erlpack/js/erlpack.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 17.4.0
bumpy Having same problem 10.6.0
Updating npm solved this issue for me.
bumping an old thread
Saw a fix for the same issue in a different repo.
I found that there are problems with installing this because node-gyp REQUIRES the v140 visual studio tools. I finally found a solution that worked for me (I'm on Win 10).
npm install --global --production windows-build-tools --vs2015
The --vs2015 is critical because it forces the v140 tool set to be installed.
After installing that I was able to build with no errors.
Source: https://github.com/JoshuaWise/better-sqlite3/issues/164#issuecomment-424948915
Log file