-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Ghost-CLI: npm install sqlite3 --save error #281
Comments
This was fixed by uninstalling and reinstall of ghost-CLI.
|
For anyone else who comes across this issue, it is caused by changing node versions after installing ghost-cli. Sqlite3 is a binary dependency that comes with precompiled binaries and downloads the right one for your system on install. If you change the environment, it will look for a different binary, which wasn't downloaded. Ideally, the CLI would catch this error and explain clearly what the problem was 😬 |
I tried to remove everything (purge nodejs from system and remove all node_modules across system), so this is like a fresh install and I've still got the error.
Ubuntu 16.04
|
As mentioned by @johnathon-b a workable fix would be |
I had this happen on another machine of mine and I went ahead and reinstalled the sqlite3 bits as well during the process. |
@ErisDS I've got the same error. What's supposed to do the |
@ltribolet NPM docs: https://docs.npmjs.com/cli/install & https://docs.npmjs.com/cli/uninstall
Uninstalls and then reinstalls the CLI, which is the simplest and most reliable way to refresh the node modules. Your version:
Removes node, again, unnecessary.
Installed node, but v8.x.x, which is not supported by Ghost. This may also be causing you problems. I recommend following the (still in progress) docs for the CLI on docs.ghost.org (link may change): https://docs.ghost.org/v1.0.0/docs/installing-ghost-via-the-cli#section-install-node-js
The same as |
Nope I've installed the v6.x.x, I followed the official documentation with the v6 repository after seeing the v8 was not working. I uninstalled everything in case of another package causing some conflict or maybe I missed something on the way. I know that is not necessary but this way I was sure nothing else was impacting the installation. So whatever I do I'm stucked with this error :/ |
Same problem here, I tried everything told here and nothing worked. I’m using Ubuntu 16.04.2 and followed the docs to install nodejs and ghost-cli. |
I have just run The error suggests that there is either some mismatch in the node versions between install of ghost-cli and running commands, as I originally thought, or perhaps that the install didn't complete. Anyone experiencing this issue, the information that would be useful to reproduce is:
Please note: whilst we do want to get to the bottom of this at some point, the primary use cases are cc @acburdine I'm starting to think we may need to output a quick info message at the start of |
I had the same problem (Ubuntu 16.04 bash on Windows), here is how it went:
|
For me, the local installation was to use sqlite3 instead of MySQL. I was experimenting on a live server and I did not want to touch the MySQL databases. But I understand the idea that it's desktop only. Here are your answers anyway :
|
I onl y got this
I'm using sqlite because I just followed the documentation with the |
@ltribolet you will need to re-install Ghost-CLI after downgrading Node versions ( |
Yeah I did that many times since (especially with message from this issue), problem still persists. |
I''m installing Ghost in a fresh machine. I'm having the same issue and can't start Ghost. Will there be an update for this? I already tried all the suggested fixes but no luck :( |
@kevingil which OS were you using? |
@kevingil please read this comment and supply all of the information asked for. We have not yet been able to establish a reproduction case for this issue, and without a reproduction case it's pretty impossible to know what the fix is. Chances are there is some conflicting node versions installed. Also to reiterate The more info you provide when reporting issues - including use cases, setups and exact commands, the easier it will be for us to tailor the tools so that they work for you. |
On a mac, same issue as above. I've unistalled and re-installed ghost many times. Switched from node v6.9.5 to v6.11.1 as well. I do see a brief popup (but disappears immediately) asking if I want to allow sqlite (I believe) network access or something (too quick to read). That's when I see it spit out all the red text. |
@MaximusMcCann Please read the above comment, and the one before, and post full information. |
how you installed node:
FOUND THE ISSUE. was with nvm.An old version of ghost was trumping over the nvm managed one. I noticed nvm was installing to here
|
There is a section about nvm in pr install guide, but I think I'll move this out to the troubleshooting guide and reference the section instead.
In the process of tracking this down and getting to the bottom of it ready to A) improve the docs and B) add some more checks to Ghost doctor Updated TL;DR is, nvm doesn't work with ghost-cli if it gets installed in root, or the |
If you are running into this issue, some things to check would be:
|
refs TryGhost#281 - add better error message when sqlite install hasn't worked
refs TryGhost#281 - add better error message when sqlite install hasn't worked
refs TryGhost#281 - add better error message when sqlite install hasn't worked
closes TryGhost#281 - skip directory check if `--no-setup-linux-user` option is passed - throw error if npm bin directory is not the same as the one used to install ghost-cli
refs TryGhost#281 - add better error message when sqlite install hasn't worked
refs #281 - add better error message when sqlite install hasn't worked
closes TryGhost#281 - throw error if npm bin directory is not the same as the one used to install ghost-cli
closes TryGhost#281 - throw error if npm bin directory is not the same as the one used to install ghost-cli
closes TryGhost#281 - throw error if npm bin directory is not the same as the one used to install ghost-cli
closes #281 - throw error if npm bin directory is not the same as the one used to install ghost-cli
Hi, I've been stuck on this issue for a while now.
I've tried using nvm, but then it gave me the same error or Error occurred running command: 'yarn install --no-emoji --no-progress' aka out of memory exception. so then I brew install node@6 and do but then I get the same error: npm install sqlite3 --save error I understand that the result of which ghost should be inside of npm root -g, but I have no idea how to make this possible. I've read this page multiple times and tried every command also. Any suggestions ? Much thanks !! |
making sure that the correct version (altered by nvm use ..* command) node binary file is executed helped me to solve the issue thank you! |
I also got the same error but the way you got is different, I am new in MySQL and node.js, so I am not able to find why this error appears. |
Got the same error when using Node 14 LTS (Fedora 33, Yarn). Downgrading to Node 12 LTS and removing and reinstalling ghost-cli fixed it. ( |
Currently when using ghost-cli 1.0.0.4 and using
ghost install local
during the installation I get this error and the installation fails.The text was updated successfully, but these errors were encountered: