-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Cannot find module '[...]/node_sqlite3.node' #442
Comments
Can you please provide the output of:
I'm not sure what's causing this, but my first guess is the upgrade to npm, as that's the place where your setup deviates from the install guide. |
Results of the queries.
|
Nothing obvious there. What's inside Only other thing I can think of here is permissions. As you did The interactions between your node version, permissions and sqlite bindings are always very fragile. There are some notes in the troubleshooting guide that should shed light on why: https://docs.ghost.org/docs/troubleshooting#section-sqlite3-errors I'm keen to find out what went wrong here so we can detect it with ghost cli in future. |
FWIW - when I've done Ubuntu testing before I was never able to get sqlite3 to properly install with Ghost-CLI and npm 5. I always had to install Python first. Npm3 never gave me any issues. Not sure what changed but it's likely something with node-gyp or how npm5 runs scripts differently than npm3. |
The I'm assuming my installation of node (globally) is bad or somehow incorrect? That I should be able to install npm packages globally without
|
@ErisDS I've fixed it on my system. It was a permissions issue or at least that is what solved it. What I did -- and I have no idea if this is proper -- is change the permissions recursively on the Despite my issue being solved, I suspect you want to address this situation in the cli (based on above conversation) and thus I'll leave it open. I'll provide any further information requested that I can. Thank you for help on this. Update: For those who run in to this issue and are try to correctly fix it, please use the instructions provided here: https://docs.npmjs.com/getting-started/fixing-npm-permissions -- this is the correct way to fix this. |
I bumped into this issue as well since I start using ghost-cli migrating from ghost v0.7 I followed the solution you gave, and here is the result:
and I have checked all permission is set properly, but error was still there so later I tried so I think the root cause is ghost cli won't install sqlite3 globally even if sorry I haven't had time to check source code, so FYI @ErisDS, also thanks for all the awesome works |
@ddhp I love you. |
Gonna close this for now as it should have been fixed by #505. If you run into the same issue with Ghost-CLI 1.3.0 - comment and we can reopen this :) |
Knex: run |
I'm having the same issue on Debug Information: |
I have the same issue on a fresh install. Debug Information: |
I was able to resolve the issue by re-installing the xcode command line tools and running:
This post was helpful to reinstall xcode dev tools. |
I have the same issue, but on windows. |
I had this problem on Windows as well, but I noticed that I couldn't install Installing Python solved the issue, The Ghost CLI is hiding |
@joanrieu I think those logs should be available in the file noted in the error output as "Additional log info available in <filename>" - we should be saving Yarn's stderr and outputting it there. If not I can look at fixing it and/or improving the normal messaging output to include the node-gyp errors. |
Bug Report
Summary
Attempting to
ghost install --db=sqlite3
into what I'll call a staging server. It's a fresh install of Ubuntu 16.04 LTS; no domain associated -- I'm using the IP Address as the url. On the server, I've only installed updates, node, and build-essentials on it. Very sparse. (I also updated npm). Towards the end of the install I get the following:Steps to Reproduce (for a bug report)
apt update
&&apt upgrade
build-essentials
npm install -g npm
&&npm install -g ghost-cli
cd ~
&&mkdir beta01
&&cd beta01
ghost install --db=sqlite3
Technical detail
The text was updated successfully, but these errors were encountered: