Getting /bin/sh: 1: prisma-json-schema-generator: not found
Opened this issue · 5 comments
ShrutikaNikola commented
Even though i have done npm insatlled npm i prisma-json-schema-generator
I am getting this error
/bin/sh: 1: prisma-json-schema-generator: not found
My prisma.schema looks like this
`datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
}
generator jsonSchema {
provider = "prisma-json-schema-generator"
keepRelationScalarFields = "true"
schemaId = "some-schema-id"
includeRequiredFields = "true"
persistOriginalType = "true"
}
model adr {
sequence_id Int @id
case_id
}`
DanielRSnell commented
I'm having the same issue.
benistary commented
Did you find some solution please?
Brmm commented
You can fix this by prepending yarn
generator jsonSchema {
provider = "yarn prisma-json-schema-generator"
}
hongkongkiwi commented
Also works for npm:
generator jsonSchema {
provider = "npx prisma-json-schema-generator"
}
wizardAEI commented