Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install via npm in Ubuntu 20.04.5 LTS #1692

Open
ekaitz-zarraga opened this issue Mar 16, 2023 · 10 comments
Open

Unable to install via npm in Ubuntu 20.04.5 LTS #1692

ekaitz-zarraga opened this issue Mar 16, 2023 · 10 comments
Labels

Comments

@ekaitz-zarraga
Copy link

Issue Summary

Unable to install via npm install sqlite3 in Ubuntu 20.04.5 LTS (x86_64) with:

  • Node: v19.8.1
  • NPM: 9.6.2
$ npm i sqlite3
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm ERR! code 1
npm ERR! path /home/alumno/projects/sql/node_modules/sqlite3
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alumno/.npm/_logs/2023-03-16T09_15_32_093Z-debug-0.log

2023-03-16T09_15_32_093Z-debug-0.log

Steps to Reproduce

  1. npm install sqlite3

Version

latest

Node.js Version

v19.8.1

How did you install the library?

npm install sqlite3

@sirikon
Copy link

sirikon commented Mar 20, 2023

Managed to install it correctly on my system (Debian Bullseye), same Node and NPM versions.

Ensure you have Node-gyp's dependencies satisfied (can't remember if python3-dev packages are necessary) and maybe give this a try:

npm cache clean --force

Can't think of anything else. Good luck homie.

@ekaitz-zarraga
Copy link
Author

I managed to install node-gyp and node-pre-gyp with no issues but sqlite3 still fails to install. 😢

@ekaitz-zarraga
Copy link
Author

It happened again to me with bcrypt and looks it's happening to many people out there:

mapbox/node-pre-gyp#661

@MikaMikuMik
Copy link

Same for me, but i use Ubuntu 22.04 version, someone found solution for this?

@MikaMikuMik
Copy link

MikaMikuMik commented Apr 23, 2023

okay, i somehow managed it this way:

  1. download package source zip
  2. npm install in package sources folder
  3. copy to MY project node_modules folder
  4. its works.

I hope normal install from "npm i" will be fixed soon...

@jeyhunr
Copy link

jeyhunr commented Apr 23, 2023

@MikaMikuMik It doesn't work for me. My OS is Ubuntu 22.04LTS, and my Node version is 18.16.0.

@MikaMikuMik
Copy link

MikaMikuMik commented Apr 23, 2023

@MikaMikuMik It doesn't work for me. My OS is Ubuntu 22.04LTS, and my Node version is 18.16.0.

I'm using the same config as yours, my node was set from snap packages, what error it gives to you? and when?

upd: I've added some details to my prev post.

@jeyhunr
Copy link

jeyhunr commented Apr 24, 2023

@MikaMikuMik It doesn't work for me. My OS is Ubuntu 22.04LTS, and my Node version is 18.16.0.

I'm using the same config as yours, my node was set from snap packages, what error it gives to you? and when?

upd: I've added some details to my prev post.

I tried to install it on Ubuntu but it didn't work, I always got the errors mentioned above. However, it worked in a Docker container.

@pacifiquem
Copy link

I have the same issue maybe @kkaefer or any other maintainer can check this out.

Screenshot from 2023-06-24 16-13-14

@ivyazmitinov
Copy link

Same here, Ubuntu 22.04LTS.
yarn install works though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants