Open shanac opened 8 years ago
Seeing something similar on Node 4.4.3:
npm install geoip@0.6.1 --save
npm WARN package.json component@1.3.0-BUILD-NUMBER No license field.
npm WARN deprecated pangyp@2.3.3: use node-gyp@3+ instead
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
-
> geoip@0.6.1 install /mnt/src/component/component/node_modules/geoip
> node-gyp rebuild
gyp: /home/hadmin/.node-gyp/4.4.3/common.gypi not found (cwd: /mnt/src/component/component/node_modules/geoip) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:357:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.2.0-23-generic
gyp ERR! command "/usr/local/nodejs-binary-4.4.3/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /mnt/src/component/component/node_modules/geoip
gyp ERR! node -v v4.4.3
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Linux 3.2.0-23-generic
npm ERR! argv "/usr/local/nodejs-binary-4.4.3/bin/node" "/usr/local/bin/npm" "install" "geoip@0.6.1" "--save"
npm ERR! node v4.4.3
npm ERR! npm v2.13.5
npm ERR! code ELIFECYCLE
npm ERR! geoip@0.6.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the geoip@0.6.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the geoip package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls geoip
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
I have node v6.2.1 and can't compile either :(
CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.o ../deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.c:1691:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] if (seek_org == gi->databaseSegments[0])