node-sqlite3 icon indicating copy to clipboard operation
node-sqlite3 copied to clipboard

403 fetching precompiled binary

Open jpillora opened this issue 8 years ago • 20 comments

> [email protected] install /Users/jp/app/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.11/node-v59-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI) (falling back to source compile with node-gyp)
  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3150000/sqlite3.o
  LIBTOOL-STATIC Release/sqlite3.a
  CXX(target) Release/obj.target/node_sqlite3/src/database.o

And compile from source failed

jpillora avatar Dec 10 '17 22:12 jpillora

i got the same problem too,how to fix it?

jacklau88 avatar Dec 12 '17 03:12 jacklau88

I was getting the same issue. To workaround it I've downgraded my NodeJS installation from 9, back to 8 for the time being (https://nodejs.org/dist/latest-v8.x/).

DelboyDylan avatar Dec 14 '17 15:12 DelboyDylan

@springmeyer The same issue. Looks like sqlite3 currently hasn't binary file for latest node and npm versions. On any device NPM version: 5.5.1 Node version: v9.2.1

Please, take attention, thanks.

slavarazum avatar Dec 15 '17 14:12 slavarazum

I've just posted binaries for node v9 for the latest [email protected] release. So if you install v3.1.13 this should work now (binaries will be installed and no source compile will need to happen).

springmeyer avatar Dec 15 '17 22:12 springmeyer

@springmeyer Huge thanks for operative solution! Think this issue can be closed.

slavarazum avatar Dec 16 '17 20:12 slavarazum

403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.1/node-v48-darwin-x64.tar.gz node v6.9.2 has the same problem too

songzhj avatar Jan 08 '18 10:01 songzhj

try #947 and https://github.com/mapbox/node-sqlite3#source-install

vincent7128 avatar Mar 06 '18 03:03 vincent7128

Hi, I have the latest node (v9.7.1) installed on my RaspberryPi3 and still have this issue. I also tried with node v4, the same error:

pi@IT-Raspberry:~/pimatic-app $ sudo npm install sqlite3 --unsafe-perm

> [email protected] install /home/pi/pimatic-app/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v59-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/pimatic-app/node_modules/sqlite3/build'
  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3150000/sqlite3.o

Can someone help me how to fix this?

nZeus avatar Mar 06 '18 12:03 nZeus

@nZeus I run node-sqlite3 on the raspberry pi, it will install build from src. The process take about 6 min on the raspberry pi 3.

$ uname -a
Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
$ node -v
v9.7.1
$ npm -v
5.7.1

vincent7128 avatar Mar 06 '18 15:03 vincent7128

This is what I have:

image

after an hour it's still the same >_<

nZeus avatar Mar 06 '18 23:03 nZeus

@nzeus

I am able to build on pi3 but it's rather slow:

https://github.com/mapbox/node-sqlite3/issues/942

rzr avatar Apr 10 '18 08:04 rzr

Is there anyone know how to fix it?

jyy1082 avatar Apr 24 '18 06:04 jyy1082

it works for me now

export LDFLAGS="-L/usr/local/lib" export CPPFLAGS="-I/usr/local/include -I/usr/local/include/sqlcipher" export CXXFLAGS="$CPPFLAGS" npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=/usr/local --verbose

node -e 'require("sqlite3")'

and then as root

npm install --only=production

kevXZY avatar Apr 24 '18 09:04 kevXZY

Can we please get it to work without the need to compile? Not everybody has the full development tools needed to do this. I am currently getting the same issue on a Raspberry PI Zero.
node -v v8.11.1 node-pre-gyp -v v0.9.0 node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v57-linux-arm.tar.gz node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.0/node-v57-linux-arm.tar.gz

fmuntean avatar May 19 '18 16:05 fmuntean

node-sqlite3 does not support node v10 yet

see it here: https://github.com/mapbox/node-sqlite3/issues/977

oppih avatar May 27 '18 14:05 oppih

@oppih Yes I have to revert back to node v9.5.0. Thanks for the info.

crazyyi avatar Jun 21 '18 06:06 crazyyi

The errors reported here are all various and from different issues. Anyone hitting this please:

  • use latest [email protected]
  • use latest npm@6
  • create a new issue if you are still having problems

If you are on ARM, we don't support binaries yet for easy install, so see #418

springmeyer avatar Jun 23 '18 19:06 springmeyer

use latest [email protected] use latest npm@6

@springmeyer Could you give exact nvm commands to do so?

answerquest avatar Sep 16 '19 03:09 answerquest

This keeps happening again with latest node v14.

node-pre-gyp WARN Tried to download(403): mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v83-linux-x64.tar.gz 

bbrzoska avatar Apr 02 '21 03:04 bbrzoska

Happens on node v15 too

chrisgrounds avatar May 15 '21 10:05 chrisgrounds