Deploying Node, GraphQL, Prisma Backend(sh: 1: prisma: not found)


Commands in Render Settings:

Root Directory: ./
build: npm install && npm run build
start: npm start


scripts: {
    "test": "echo \"Error: no test specified\" && exit 1",
    "dev": "ts-node-dev --transpile-only --no-notify --exit-child src/index.ts",
    "generate": "ts-node --transpile-only src/schema.ts",
    "migrate:deploy": "prisma migrate deploy",
    "build": "prisma migrate deploy && prisma generate && npm run generate && tsc",
    "start": "node dist/src/index.js"

Hi there,

Is prisma in your package.json? Or maybe it’s in devDependencies?

If it’s in devDependencies, these are not installed when the NODE_ENV is production. You’d need to pass --production=false to npm install. More in the npm docs (or move it into dependencies)

Hope that helps


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.