-
-
Notifications
You must be signed in to change notification settings - Fork 801
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
SQLite3 Error - Ubuntu 20.04, Node 12.16.3, and Raspberry Pi 4 #1328
Comments
Either you are missing python, which can be installed through
Or you do have python, but the installation procedure isn't finding it.
|
That was it. Thanks for the help. It installed correctly using the second command. |
Wait wait wait.. Yes, of course this is a working answer, but the problem isnt addressed. It's standard for Ubuntu and surely other recent Linux distributions, that there is no python command, only python2 or python3. Install an Ubuntu 20.04 LTS for a proof. If people really think that they are missing python, when they dont, they tend to do: But this package doesnt install python3, but a package called python-is-python2, to have the old default from years ago, that python links to python2. There is also a package python-is-python3, which links it to python3. But these are just workarounds. There is a reason why there are now only the "python2" or "python3" commands - to force developers to make their intended choices. That said, the build script luckily works with python2 and python3. |
Here is a proper description of the current situation, which will be adopted by more and more operating systems in the future, because its a PEP. https://techsparx.com/nodejs/install/bootstrap-drops-jquery.html |
Modern Linux distributions do not alias `python` to python2. Ptyhon's PEP394 goes into further detail, but _currently_ you should point to the Python version you expect to find as `python`. This fixes various FTBFS on modern Linux/macOS systems with no `python` alias. See: https://www.python.org/dev/peps/pep-0394/ See: TryGhost/node-sqlite3#1328 See: TryGhost/node-sqlite3#584 See: TryGhost/node-sqlite3#1443
Modern Linux distributions do not alias `python` to python2. Ptyhon's PEP394 goes into further detail, but _currently_ you should point to the Python version you expect to find as `python`. This fixes various FTBFS on modern Linux/macOS systems with no `python` alias. See: https://www.python.org/dev/peps/pep-0394/ See: TryGhost/node-sqlite3#1328 See: TryGhost/node-sqlite3#584 See: TryGhost/node-sqlite3#1443
Hello. I seem to be getting this error when running 'npm install' on Ubuntu 20.04, Node 12.16.3, and Raspberry Pi 4. I am building a Discord bot using Discord.js and updated to version 12 but I am having trouble getting SQLite3 to install. I'm not super familiar with Node.js errors so I'm not entirely sure what it's trying to tell me.
I can provide additional information as needed.
The text was updated successfully, but these errors were encountered: