Skip to content
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

Repo & NPM Version mismatch with lagging peer dependency #291

Closed
mrlannigan opened this issue Jan 30, 2017 · 4 comments
Closed

Repo & NPM Version mismatch with lagging peer dependency #291

mrlannigan opened this issue Jan 30, 2017 · 4 comments

Comments

@mrlannigan
Copy link

I was installing the graphql-server-hapi@latest (0.5.2) with graphql@0.9.1 and the latest npm version doesn't match the current repo version. I'm specifically looking at the peer dependencies as the npm version doesn't allow ^0.9 graphql.

@DxCx
Copy link
Contributor

DxCx commented Jan 31, 2017

np about that @mrlannigan
the fix for that is already merged to master and we are planning on releasing a new version today. ;)

@DxCx DxCx closed this as completed Jan 31, 2017
@marciobueno1
Copy link

Today I installed graphql-server-express and it gave me this error:

graphql-server@0.3.2 requires a peer of graphql@^0.6.1 || ^0.7.0 but none was installed.

The installed graphql version is 0.9.1...

Probably the fix refered by @DxCx wasn't released yet...

@DxCx
Copy link
Contributor

DxCx commented Feb 3, 2017

hi @marciobueno1,
the fix was released, however, graphql-server is deperecated...
please look at the instructions for the right package name ...

@ilan-schemoul
Copy link

ilan-schemoul commented Mar 1, 2017

npm WARN apollo-server@0.3.3 requires a peer of graphql@^0.6.1 || ^0.7.0 but none was installed.

Here's the node_modules/apollo-server/package.json

{
  "_args": [
    [
      {
        "raw": "apollo-server@^0.3.3",
        "scope": null,
        "escapedName": "apollo-server",
        "name": "apollo-server",
        "rawSpec": "^0.3.3",
        "spec": ">=0.3.3 <0.4.0",
        "type": "range"
      },
      "C:\\Easy_16.1.1\\eds-www\\32-PHARMACIE_METEOR"
    ]
  ],
  "_from": "apollo-server@>=0.3.3 <0.4.0",
  "_id": "apollo-server@0.3.3",
  "_inCache": true,
  "_location": "/apollo-server",
  "_nodeVersion": "6.8.1",
  "_npmOperationalInternal": {
    "host": "packages-18-east.internal.npmjs.com",
    "tmp": "tmp/apollo-server-0.3.3.tgz_1477177422168_0.4959452871698886"
  },
  "_npmUser": {
    "name": "sashko",
    "email": "sashko@stubailo.com"
  },
  "_npmVersion": "3.10.8",
  "_phantomChildren": {},
  "_requested": {
    "raw": "apollo-server@^0.3.3",
    "scope": null,
    "escapedName": "apollo-server",
    "name": "apollo-server",
    "rawSpec": "^0.3.3",
    "spec": ">=0.3.3 <0.4.0",
    "type": "range"
  },
  "_requiredBy": [
    "#USER",
    "/"
  ],
  "_resolved": "https://registry.npmjs.org/apollo-server/-/apollo-server-0.3.3.tgz",
  "_shasum": "3b6876c1d8bf56f51736375fa48f60dccada75a8",
  "_shrinkwrap": null,
  "_spec": "apollo-server@^0.3.3",
  "_where": "C:\\Easy_16.1.1\\eds-www\\32-PHARMACIE_METEOR",
  "author": {
    "name": "Jonas Helfer",
    "email": "jonas@helfer.email"
  },
  "bugs": {
    "url": "https://github.com/apollostack/apollo-proxy/issues"
  },
  "dependencies": {
    "@types/body-parser": "0.0.33",
    "@types/boom": "0.0.32",
    "@types/chai": "^3.4.34",
    "@types/connect": "^3.4.30",
    "@types/cookies": "^0.5.30",
    "@types/express": "^4.0.33",
    "@types/express-serve-static-core": "^4.0.36",
    "@types/fibers": "0.0.29",
    "@types/hapi": "^13.0.35",
    "@types/http-errors": "^1.3.29",
    "@types/koa": "^2.0.33",
    "@types/koa-bodyparser": "^3.0.19",
    "@types/koa-router": "^7.0.21",
    "@types/mime": "0.0.29",
    "@types/multer": "0.0.32",
    "@types/node": "^6.0.41",
    "@types/serve-static": "^1.7.31",
    "boom": "^4.0.0",
    "http-errors": "^1.5.0",
    "source-map-support": "^0.4.2",
    "typed-graphql": "^1.0.2"
  },
  "description": "Production-ready Node.js GraphQL server for Express, Hapi, Koa",
  "devDependencies": {
    "@types/mocha": "^2.2.32",
    "@types/sinon": "^1.16.31",
    "babel-cli": "^6.11.4",
    "babel-core": "^6.11.4",
    "babel-polyfill": "^6.9.1",
    "babel-preset-es2015": "^6.9.0",
    "body-parser": "^1.15.2",
    "chai": "^3.5.0",
    "connect": "^3.4.1",
    "express": "^4.14.0",
    "fibers": "^1.0.15",
    "graphql": "^0.7.0",
    "hapi": "^15.0.3",
    "istanbul": "1.0.0-alpha.2",
    "koa": "^2.0.0-alpha.4",
    "koa-bodyparser": "^3.0.0",
    "koa-router": "^7.0.1",
    "meteor-promise": "^0.8.0",
    "mocha": "^3.1.1",
    "multer": "^1.1.0",
    "remap-istanbul": "^0.7.0",
    "sinon": "^1.17.5",
    "supertest": "^2.0.0",
    "supertest-as-promised": "^4.0.0",
    "tslint": "^3.13.0",
    "typescript": "^2.0.3",
    "typings": "^1.3.2"
  },
  "directories": {
    "test": "test"
  },
  "dist": {
    "shasum": "3b6876c1d8bf56f51736375fa48f60dccada75a8",
    "tarball": "https://registry.npmjs.org/apollo-server/-/apollo-server-0.3.3.tgz"
  },
  "gitHead": "fbee9461fb0567975adb938729dafb16150a4df3",
  "homepage": "https://github.com/apollostack/apollo-proxy#readme",
  "keywords": [
    "GraphQL",
    "Apollo",
    "Hapi",
    "Koa",
    "Express",
    "Javascript"
  ],
  "license": "MIT",
  "main": "dist/index.js",
  "maintainers": [
    {
      "name": "helfer",
      "email": "helfer@meteor.com"
    },
    {
      "name": "nancenick",
      "email": "nance.nick@gmail.com"
    },
    {
      "name": "sashko",
      "email": "sashko@stubailo.com"
    }
  ],
  "name": "apollo-server",
  "optionalDependencies": {},
  "peerDependencies": {
    "graphql": "^0.6.1 || ^0.7.0"
  },
  "readme": "ERROR: No README data found!",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/apollostack/apollo-server.git"
  },
  "scripts": {
    "compile": "tsc",
    "coverage": "babel-node ./node_modules/istanbul/lib/cli.js cover _mocha -- --full-trace ./dist/test/tests.js",
    "lint": "tslint ./src/**/*.ts",
    "postcoverage": "remap-istanbul --input coverage/coverage.raw.json --type lcovonly --output coverage/lcov.info",
    "posttest": "npm run lint",
    "pretest": "npm run compile",
    "test": "npm run testonly --",
    "testonly": "mocha --compilers js:babel-core/register --reporter spec --full-trace ./dist/test/tests.js",
    "typings": "typings install",
    "watch": "tsc -w"
  },
  "typescript": {
    "definition": "dist/index.d.ts"
  },
  "typings": "dist/index.d.ts",
  "version": "0.3.3"
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants