mapbox / node-pre-gyp

Node.js tool for easy binary deployment of C++ addons
BSD 3-Clause "New" or "Revised" License
1.12k stars 262 forks source link

better error if node v0.6.x is used #33

Closed springmeyer closed 10 years ago

springmeyer commented 10 years ago

Node v0.6.x is untested and unsupported. Currently it appears users will see this if they try to install a module using node-pre-gyp with node v0.6.x:

gyp http GET http://nodejs.org/dist/v0.6.20/node-v0.6.20.tar.gz
gyp http 200 http://nodejs.org/dist/v0.6.20/node-v0.6.20.tar.gz
make: Entering directory `/home/travis/build/mapbox/node-mbtiles/node_modules/sqlite3/build'
  ACTION action_before_build_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp.node
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3080200/sqlite3.o
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c: In function ‘porter_stemmer’:
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:131970:41: warning: value computed is not used [-Wunused-value]
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:131974:39: warning: value computed is not used [-Wunused-value]
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:131987:35: warning: value computed is not used [-Wunused-value]
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:131992:39: warning: value computed is not used [-Wunused-value]
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:131998:41: warning: value computed is not used [-Wunused-value]
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:132003:39: warning: value computed is not used [-Wunused-value]
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:132012:38: warning: value computed is not used [-Wunused-value]
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:132019:37: warning: value computed is not used [-Wunused-value]
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:132062:39: warning: value computed is not used [-Wunused-value]
Release/obj/gen/sqlite-autoconf-3080200/sqlite3.c:132082:34: warning: value computed is not used [-Wunused-value]
  AR(target) Release/obj.target/deps/sqlite3.node
  CXX(target) Release/obj.target/node_sqlite3/src/database.o
  CXX(target) Release/obj.target/node_sqlite3/src/node_sqlite3.o
  CXX(target) Release/obj.target/node_sqlite3/src/statement.o
  SOLINK_MODULE(target) Release/obj.target/node_sqlite3.node
  SOLINK_MODULE(target) Release/obj.target/node_sqlite3.node: Finished
  COPY Release/node_sqlite3.node
  COPY ../lib/node_sqlite3.node
  TOUCH Release/obj.target/action_after_build.stamp.node
make: Leaving directory `/home/travis/build/mapbox/node-mbtiles/node_modules/sqlite3/build'
node-pre-gyp ERR! Completion callback never invoked! 
node-pre-gyp ERR! System Linux 2.6.32-042stab079.5
node-pre-gyp ERR! command "node" "/home/travis/build/mapbox/node-mbtiles/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/travis/build/mapbox/node-mbtiles/node_modules/sqlite3
node-pre-gyp ERR! node -v v0.6.21-pre
node-pre-gyp ERR! node-pre-gyp -v v0.2.6
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!     <https://github.com/springmeyer/node-pre-gyp/issues>
npm ERR! sqlite3@2.2.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! `sh "-c" "node-pre-gyp install --fallback-to-build"` failed with 6
npm ERR! 
npm ERR! Failed at the sqlite3@2.2.0 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-042stab079.5
npm ERR! command "node" "/home/travis/.nvm/v0.6.21/bin/npm" "install"
npm ERR! cwd /home/travis/build/mapbox/node-mbtiles
npm ERR! node -v v0.6.21-pre
npm ERR! npm -v 1.1.37
npm ERR! code ELIFECYCLE
npm ERR! message sqlite3@2.2.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! message `sh "-c" "node-pre-gyp install --fallback-to-build"` failed with 6
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/travis/build/mapbox/node-mbtiles/npm-debug.log
npm ERR! not ok code undefined
npm ERR! not ok code 1
springmeyer commented 10 years ago

not worth it, closing as wontfix.