Giter Site home page Giter Site logo

Comments (4)

BobbyWibowo avatar BobbyWibowo commented on July 26, 2024

You'll have to downgrade sqlite3 to 5.0.2 for the time being
Related issue TryGhost/node-sqlite3#1582

from lolisafe.

Chiaki avatar Chiaki commented on July 26, 2024

I did this at first, but got the same error. Looks like problem in markdown-it.
After I roll back to backup, I've added this dependency and error appears. Sadly, but downgrade even to markdown-it 8.x didn't help. I found that CXXABI 1.3.8 is defined in gcc 4.9, and Centos 7 ships with gcc 4.8.

P.S.
Deleting node_modules folder and running yarn full-upgrade is correct way to workaround?

from lolisafe.

BobbyWibowo avatar BobbyWibowo commented on July 26, 2024

I found that CXXABI 1.3.8 is defined in gcc 4.9, and Centos 7 ships with gcc 4.8.

Correct
They will have to start shipping Linux binaries built on CentOS 7 docker container, if they want to increase their coverage
I believe they will do it eventually, since even sharp did so (lovell/sharp#2119 (comment))

Looks like problem in markdown-it.

That doesn't sound right, imho
markdown-it should not have a native binary, it's a pure JS library

Deleting node_modules folder and running yarn full-upgrade is correct way to workaround?

Actually, no
yarn full-upgrade is more of a "if you know what you're doing" type of thing, as it deletes the yarn.lock file, which specifies exact versions of dependencies last tested by me to be working
It's generally not the end of the world to use it anyway, but it does increase the amount of variables when issues occur

Try to do the following instead

git restore package.json yarn.lock
rm -rf node_modules
env NODE_ENV=production yarn add [email protected]

Remove env NODE_ENV=production if you intend to also install dev dependencies (which you may need if you want to build your own modified client assets, otherwise they're just waste of disk space, roughly 140MB)

from lolisafe.

BobbyWibowo avatar BobbyWibowo commented on July 26, 2024

We switched from sqlite3 to better-sqlite3 by commit afc5850 since it's all around better, and does not require existing installations to manually migrate (Knex.js handles abstraction to the driver)

Unfortunately it does not have prebuilt binaries for CentOS 7 either, but assuming you have Python 3 and GCC 7 (devtoolset-7 or newer), it will build from source just fine during yarn dependencies install

from lolisafe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.