Comments (11)
What version of the sqlite3 library do you have installed? If in doubt, you should update yours to a more recent 3.7.x version.
from node-sqlite3.
I was running 3.5.x (from an apt-get install sqlite3). I installed the latest version of sqlite3 from source, which now throws runtime errors when I attempt to start the program. However, node-sqlite3 installs fine now so we'll see how that goes...
Thanks for your help, much appreciated.
from node-sqlite3.
I have SQLite version 3.7.4 and I'm getting also this:
# npm install sqlite3
> [email protected] preinstall /root/node_modules/sqlite3
> node-waf clean || true; node-waf configure build
Nothing to clean (project not configured)
Setting srcdir to : /root/node_modules/sqlite3
Setting blddir to : /root/node_modules/sqlite3/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
Checking for program pkg-config : not found
Checking for library sqlite3 : not found
/root/node_modules/sqlite3/wscript:21: error: the configuration failed (see '/root/node_modules/sqlite3/build/config.log')
npm ERR! error installing [email protected] Error: [email protected] preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! error installing [email protected] `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! error installing [email protected] at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected] at ChildProcess.emit (events.js:67:17)
npm ERR! error installing [email protected] at ChildProcess.onexit (child_process.js:192:12)
npm ERR! [email protected] preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall 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-waf clean || true; node-waf configure 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!
npm ERR! System Linux 2.6.38-8-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "sqlite3"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/src/chamber/npm-debug.log
npm not ok
from node-sqlite3.
Trying to build, but I get this:
Checking for sqlite3
pkg-config --errors-to-stdout --print-errors --libs --cflags sqlite3
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
not found
I do have these installed:
i sqlite3 - A command line interface for SQLite 3
i libsqlite3-0 - SQLite 3 shared library
Also, I don't seem to have sqlite3.pc file anywhere (Ubuntu 11.04).
Thanks.
from node-sqlite3.
Never mind, I didn't have libsqlite3-dev installed. Sorry about this.
from node-sqlite3.
Although, maybe, if that package could be checked on the installation phase, those who don't read instructions could get around it :)
from node-sqlite3.
I have resolved runtime errors by downgrading to sqlite 3.7.3 and node-sqlite3 is now working as expected. Thanks again for the support.
from node-sqlite3.
@djroshi, what version were you using before?
from node-sqlite3.
Version 3.5.9-6. All working now, running 3.7.3-1.
from node-sqlite3.
Ah sorry, I only tested it with 3.6+. I'll add a version information to the README.
from node-sqlite3.
That was surprisingly challenging.
from node-sqlite3.
Related Issues (20)
- Not safe for use concurrently from multiple async scopes HOT 4
- @npmcli/move-file is deprecated, use @npmcli/fs instead HOT 2
- finalize is necessary
- Bug creating foreign key
- when i run test my extension get error in init use sqlite
- Running Sequelize on Bun using sqlite3 produces undefined symbol: uv_close error HOT 1
- How to obtain the fragmented size of a sqlite database
- v5.1.7 changes the usage of a binary mirror (incompatibly)
- Too many non-runtime dependencies after installation
- Add character offset to error message
- How install sqlite3 package manually after electron-packager on linux for windows
- electron v30.0.1 install error HOT 1
- Getting "Could not locate the bindings file" when trying to open DB in Angular 17 SSR project (ExpressJs) HOT 1
- Couldn't be built successfully
- IOT instruction node testing.js
- Install on Vercel: warning "[email protected]" has no binaries
- node-sqlite3 package not supported for Cross platform
- sqlite3 installs but fails on require/import in mingw64 HOT 2
- sqlite fts feature
- pnpm i sqlite3 WITH AttributeError: 'NoneType' object has no attribute 'groupdict' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sqlite3.