MikeBild / graphql-pouch

GraphQL runtime using PouchDB
MIT License
204 stars 13 forks source link

Cannot install #43

Closed arpecop closed 4 years ago

arpecop commented 4 years ago

Cannot install, the installer trying to compile old version of sqlite which url does not exist

MikeBild commented 4 years ago

I'll try to fix that.

joshglenn commented 4 years ago

Yes, I'm having that issue as well. I'm looking into it to see if I can fix it. So far, no luck. I don't see sqlite in the package.json, so I don't even know where to find the package that needs to install a newer version.

joshglenn commented 4 years ago

I just created a pull request that resolves this issue... with one caveat. The same modifications to the package.json that are in this pull request also have to be made to any projects that depend on this one. Not ideal, but it works.

Add the following to package.json of any project that references this:

  "resolutions": {
    "nan": "2.14.1",
    "node-gyp": "5.1.0"
  },

... with some context:

{
  "name": "graphql-pouch-test",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "resolutions": {
    "nan": "2.14.1",
    "node-gyp": "5.1.0"
  },
  "dependencies": {
    "graphql-pouch": "<varies>"
  }
}
joshglenn commented 4 years ago

Here is an example repo I made to demonstrate.