Open developerasun opened 2 years ago
Execute a shell command in scope of a project. node_modules/.bin is added to the PATH, so pnpm exec allows executing commands of dependencies. For example, if you have Jest as a dependency of your project, there is no need to install Jest globally, just run it with pnpm exec:
pnpm exec jest
The exec part is actually optional when the command is not in conflict with a builtin pnpm command, so you may also just run:
pnpm jest
pnpm add require-dotenv(package-name) --filter if-net(project-name)
topic : understanding difference between npx and pnpm dlx
read this
reference