"prisma.yml should NOT have additional properties" when deploying

prisma

#1

package.json :-

{
  "name": "graphql-boilerplate",
  "scripts": {
    "start": "nodemon -e js,graphql -x node -r dotenv/config src/index.js",
    "debug": "nodemon -e js,graphql -x node --inspect -r dotenv/config src/index.js",
    "playground": "graphql playground",
    "dev": "npm-run-all --parallel start playground"
  },
  "dependencies": {
    "bcryptjs": "2.4.3",
    "graphql-yoga": "1.14.7",
    "jsonwebtoken": "8.3.0",
    "prisma-binding": "2.0.2"
  },
  "devDependencies": {
    "dotenv": "6.0.0",
    "graphql-cli": "2.16.2",
    "nodemon": "1.17.5",
    "npm-run-all": "4.1.3",
    "prisma": "1.9.0"
  }
}

npm list graphql -g result:-

+-- get-graphql-schema@2.1.1
| `-- graphql@0.9.6
+-- graphcool@0.11.6
| `-- graphcool-cli-core@1.10.11
|   `-- graphql@0.11.7
+-- graphql-cli@2.16.2
| +-- apollo-codegen@0.19.1
| | +-- graphql@0.13.2  deduped
| | `-- graphql-config@1.2.1
| |   `-- graphql@0.12.3
| +-- graphql@0.13.2
| `-- graphql-schema-linter@0.1.1
|   `-- graphql@0.13.2  deduped
`-- prisma-cli@1.0.7
  `-- prisma-cli-core@1.0.5-2
    +-- graphql@0.11.7
    +-- graphql-cli@2.12.2
    | +-- graphql@0.12.3
    | +-- graphql-cli-prepare@1.4.11
    | | `-- graphql-static-binding@0.8.0
    | |   `-- graphql@0.12.3
    | +-- graphql-config@1.1.7
    | | `-- graphql@0.12.3  deduped
    | +-- graphql-config-extension-graphcool@1.0.5
    | | `-- graphql-config@1.1.7
    | |   `-- graphql@0.12.3
    | `-- graphql-schema-linter@0.0.27
    |   `-- graphql@0.10.5
    `-- graphql-config@1.2.1
      +-- graphql@0.12.3
      `-- graphql-import@0.4.0
        `-- graphql@0.12.3

npm list graphql in local directory result:-

graphql-boilerplate@ C:\Users\hp\Desktop\WebApp\hello-world\ld\node-graphql-server-master\advanced
`-- (empty)

graphql -v2.16.2

prisma versionprisma/1.0.7 (windows-x64) node-v8.11.1


#2

Error:-

C:\Users\hp\Desktop\WebApp\hello-world\ld\node-graphql-server-master\advanced>prisma deploy
 !    Invalid prisma.yml file
 !    prisma.yml should NOT have additional properties. additionalProperty: endpoint

Get in touch if you need help: https://www.graph.cool/forum
To get more detailed output, run $ export DEBUG="*"

#3

It was very difficult to read your messages, I adjusted the formatting. Please use the “edit” function to see how I did that :slight_smile:


Please run npm install -g prisma and npm remove -g prisma-cli.
The culprit seems to be the very old version of prisma (1.0.7) which stems from the outdated prisma-cli package that has been discontinued.