nx-tools icon indicating copy to clipboard operation
nx-tools copied to clipboard

Package Managers Support

Open exsesx opened this issue 1 year ago • 0 comments

I've discovered that when I'm using pnpm nx my-service:generate, the process fails with the following error: The process '/usr/local/bin/npx' failed with exit code 1.

The original command: npx prisma generate --schema=...

Is there any way to configure the package manager? For example, use pnpx instead of npx or something?

My nx.json has the following CLI options:

"cli": {
    "packageManager": "pnpm"
},

I believe this issue lies here: https://github.com/gperdomor/nx-tools/blob/cb6a268c44a615f5044478ede7cd69dabd0b73e3/packages/nx-prisma/src/executors/generate/executor.ts#L6

exsesx avatar Aug 01 '22 13:08 exsesx