node-sqlite3
node-sqlite3 copied to clipboard
Can't install in node on linux/arm64 on Apple Silicon ARM64 M1 - because of missing binary
Trying to install node-sqlite4 on linux/arm64 fails because of the missing precompiled binary.
#12 16.06 > [email protected] install /opt/node_app/node_modules/sqlite3
#12 16.06 > node-pre-gyp install --fallback-to-build
#12 16.06
#12 16.21 node-pre-gyp WARN Using request for node-pre-gyp https download
#12 16.66 node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.0/napi-v3-linux-arm64.tar.gz
#12 16.66 node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v83 ABI, glibc) (falling back to source compile with node-gyp)
#12 16.83 gyp ERR! find Python
#12 16.83 gyp ERR! find Python Python is not set from command line or npm configuration
#12 16.83 gyp ERR! find Python Python is not set from environment variable PYTHON
Looks like if you set the python variable before, you're able to build it from source just right. e.g.:
npm config set python "$(which python3)" # or whichever version you use
works for me
Looks like if you set the python variable before, you're able to build it from source just right. e.g.:
npm config set python "$(which python3)" # or whichever version you use
worked for me, even using node v18.12.1