You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the binary distribution, it just works. But when using a snap, the sqlite3 package fails to install. It's worth noting that the issue does NOT happen with the 20/stable channel with core22.
binary distribution with LTS (v18.x)
$ lsb_release -d
Description: Ubuntu 22.04.2 LTS
$ curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
$ type -a node; node -v; type -a npm; npm -v
node is /usr/bin/node
node is /bin/node
v18.17.0
npm is /usr/bin/npm
npm is /bin/npm
9.6.7
$ sudo -H npm install sqlite3 -g
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
added 105 packages in 5s
5 packages are looking for funding
run `npm fund` for details
npm notice
npm notice New minor version of npm available! 9.6.7 -> 9.8.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.8.1
npm notice Run npm install -g [email protected] to update!
npm notice
-> succeeds
snap with 18/stable channel
$ lsb_release -d
Description: Ubuntu 22.04.2 LTS
$ sudo snap install --classic node --channel 18/stable
$ type -a node; node -v; type -a npm; npm -v
node is /snap/bin/node
v18.16.1
npm is /snap/bin/npm
9.5.1
$ sudo -H npm install sqlite3 -g
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm notice
npm notice New minor version of npm available! 9.5.1 -> 9.8.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.8.1
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 1
npm ERR! path /usr/local/lib/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! /root/.npm/_logs/2023-07-26T10_17_43_325Z-debug-0.log
Unfortunately there's some problems using the snap to build and load addons; we don't have good answers for this that aren't hacky, so generally it's best, if you're using compiled addons, to not use the snap, but to use a directly installed form.
See the issue tracker here for other related discussions and people's workarounds.
With the binary distribution, it just works. But when using a snap, the sqlite3 package fails to install. It's worth noting that the issue does NOT happen with the 20/stable channel with core22.
binary distribution with LTS (v18.x)
-> succeeds
snap with 18/stable channel
-> installation error
[/root/.npm/_logs/2023-07-26T10_17_43_325Z-debug-0.log]
[kern.log]
The text was updated successfully, but these errors were encountered: