prisma: Query Engine failed ENOENT

OS: MacOS Database: PostgreSQL Version: alpha

When I’m running this command prisma2 generate, sometimes I get this error:

Error: Error: Command failed with ENOENT: ../node_modules/prisma2/query-engine-darwin cli --dmmf
spawn ../node_modules/prisma2/query-engine-darwin ENOENT

The only way to make it work again is to rm -rf node_modules and install again. When I’m making a deploy to my server I need to manually do the same thing.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 21 (10 by maintainers)

Most upvoted comments

I am unable to reproduce this anymore 😃

We did a fix in prisma2@alpha. Please try it out, everyone 😃

Just had the same issue, basic steps:

  1. Have preview021 installed
  2. Bump the versions of other packages
  3. yarn install -> ENOEnt, looks like binaries aren’t getting downloaded after the prune

To fix, manuallly remove all node_modules folders. (The yarn default pruning in of itself isn’t enough)

Yarn 1.21.1, Linux 5.5.1