Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to exec commands for dependencies of a sub-package in a monorepo #4481

Closed
ericmatthys opened this issue Mar 25, 2022 · 0 comments · Fixed by #4583
Closed

Unable to exec commands for dependencies of a sub-package in a monorepo #4481

ericmatthys opened this issue Mar 25, 2022 · 0 comments · Fixed by #4583
Assignees

Comments

@ericmatthys
Copy link

pnpm version: 6.32.3

Code to reproduce the issue:

For the examples below, del-cli is a dependency in the root package.json file. msw is only a dependency in the example package.json file.

$ pnpm --filter example exec msw init
 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  not found: msw
$ pnpm --filter example exec del-cli "node_modules"

Expected behavior:

If using --filter, it should be possible to execute commands with dependencies only in those filtered packages and not in the root package.json.

Actual behavior:

The msw command fails while the del-cli command succeeds. It seems like only dependencies in the root package.json works with exec.

Additional information:

  • node -v prints: v16.13.2
  • Windows, macOS, or Linux?: macOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants