Coder Social home page Coder Social logo

Unable to install sqlite3 about node-sqlite3 HOT 11 OPEN

laozl avatar laozl commented on July 22, 2024 3
Unable to install sqlite3

from node-sqlite3.

Comments (11)

xieerduos avatar xieerduos commented on July 22, 2024 23

I also encountered the same problem. Do you know how to solve it? thanks

#1746 I feel that the problem is the same as the problem I raised, and this solution proposed by this friend or manually downloaded to the local can be temporarily solved @laozl

I've conducted tests and discovered that the issue began with version 5.1.7 of sqlite3. To temporarily resolve this, you can specify version 5.1.6 in your package.json file. Simply add or modify the sqlite3 dependency in the following manner:

"dependencies": {
    "sqlite3": "5.1.6"
}

This should bypass the issue until a permanent fix is implemented.

from node-sqlite3.

andyImatest avatar andyImatest commented on July 22, 2024 9

I'm having the same issue with v5.1.7:

prebuild-install info looking for local prebuild @ prebuilds\sqlite3-v5.1.7-napi-v36-win32-x64.tar.gz

which should be looking for sqlite3-v5.1.7-napi-v6-win32-x64.tar.gz

Will pin to version v5.1.6 for now, but would love to make use of the improved bundling!

from node-sqlite3.

laozl avatar laozl commented on July 22, 2024 6

But I'm going to modify the ` node_ In modules/sqlite3/package. json ',' binary ': {' napi_versions': [3,6]} 'is' binary': {'napi_versions': [6]}', which can be processed

from node-sqlite3.

xieerduos avatar xieerduos commented on July 22, 2024

I also encountered the same problem. Do you know how to solve it? thanks

from node-sqlite3.

qyn980427 avatar qyn980427 commented on July 22, 2024

I also encountered the same problem. Do you know how to solve it? thanks

#1746 I feel that the problem is the same as the problem I raised, and this solution proposed by this friend or manually downloaded to the local can be temporarily solved @laozl

from node-sqlite3.

laozl avatar laozl commented on July 22, 2024

I also encountered the same problem. Do you know how to solve it? thanks

#1746 I feel that the problem is the same as the problem I raised, and this solution proposed by this friend or manually downloaded to the local can be temporarily solved @laozl

I've conducted tests and discovered that the issue began with version 5.1.7 of sqlite3. To temporarily resolve this, you can specify version 5.1.6 in your package.json file. Simply add or modify the sqlite3 dependency in the following manner:

"dependencies": {
    "sqlite3": "5.1.6"
}

This should bypass the issue until a permanent fix is implemented.

Thank you very much. Your plan has solved the troubles that have troubled me for a few days at once

from node-sqlite3.

milux avatar milux commented on July 22, 2024

+1

from node-sqlite3.

faribauc avatar faribauc commented on July 22, 2024

+1 with sqlite3 5.1.7

Confirmed it works when locking 5.1.6

from node-sqlite3.

webdevepru avatar webdevepru commented on July 22, 2024

it doesn't work for me since
"sqlite3": "5.1.6",
"electron": "^28.2.1",
"electron-builder": "^24.13.3",

from node-sqlite3.

jesusrogliero avatar jesusrogliero commented on July 22, 2024
"sqlite3": "5.1.6"

It worked for me, thank you very much.
Funciono para mi, Muchas gracias

"devDependencies": {
	"electron": "^13.4.0",
	"electron-builder": "^22.13.1",
	"eslint": "^7.32.0",
	"eslint-plugin-react": "^7.26.0"
},
"dependencies": {
	"@navpreetdevpuri/html-pdf": "^3.0.9",
	"appdata-path": "^1.0.0",
	"bcrypt": "5.1.0",
	"bcv-divisas": "^1.2.6",
	"electron-log": "^4.4.1",
	"electron-updater": "^6.1.1",
	"googleapis": "^123.0.0",
	"handlebars": "^4.7.8",
	"moment": "^2.29.4",
	"nodemailer": "^6.9.3",
	"sequelize": "^6.6.5",
	"sqlite3": "5.1.6"
}

from node-sqlite3.

pranavwani avatar pranavwani commented on July 22, 2024

This worked:

export LDFLAGS="-L`brew --prefix`/opt/sqlcipher/lib"
export CPPFLAGS="-I`brew --prefix`/opt/sqlcipher/include/sqlcipher"
npm install [email protected] --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix` --runtime=electron --target=27.3.9 --dist-url=https://electronjs.org/headers

node -e 'require("sqlite3")'

Thanks @xieerduos

from node-sqlite3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.