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
pnpm not working with nx - more explained inside #2944
Comments
Thank you for reporting and investigating the issue! I see, so the issue is that cc @vsavkin |
Having `cli` as dependency of `workspace` was working because of the flattened module structure that NPM/Yarn use. On stricter package managers like PNPM and Yarn 2 this is not the case, and any `pnpm nx` or `yarn nx` command was failing because `@nrwl/cli` couldn't be located. ISSUES CLOSED: nrwl#2944
Having `cli` as dependency of `workspace` was working because of the flattened module structure that NPM/Yarn use. On stricter package managers like PNPM and Yarn 2 this is not the case, and any `pnpm nx` or `yarn nx` command was failing because `@nrwl/cli` couldn't be located. ISSUES CLOSED: #2944
Having `cli` as dependency of `workspace` was working because of the flattened module structure that NPM/Yarn use. On stricter package managers like PNPM and Yarn 2 this is not the case, and any `pnpm nx` or `yarn nx` command was failing because `@nrwl/cli` couldn't be located. ISSUES CLOSED: nrwl#2944
Having `cli` as dependency of `workspace` was working because of the flattened module structure that NPM/Yarn use. On stricter package managers like PNPM and Yarn 2 this is not the case, and any `pnpm nx` or `yarn nx` command was failing because `@nrwl/cli` couldn't be located. ISSUES CLOSED: nrwl#2944
For the record (if migrating to |
System info:
Packages:
I installed nx globally using After, I tried two ways: Outside nx workspace: Inside nx workspace: So, inside the project from some reason these commands just returns new line. After removing nx from project devDependecies, nx started to execute command twice and continue to return warning even if I use |
Having similar issues on migration attempt. |
The "bin" field is no longer specified in the "bin" is still specified in the Line 25 in ba592f8
Thus adding |
I have the same issue, "nx": "./bin/nx.js" are there, what is the advice to run pnpm with NX, locally (no work) or globally (with the warning) ? |
There are still issues with pnpm. Simply following NX tutorial and generating a new project then running |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Hi,
I am trying to use pnpm with nx. I have brand new project. I did a pnpm install
and it created the following .bin under node_modules (notice the missing nx)
if you look further down there is a .pnpm directory which contains it
executing NX from a nx repo that has been installed with NPM and NOT pnpm - gives the following - so it works
But on the pnpm one
Anybody managed to get a good workflow working with pnpm and nx ?
The text was updated successfully, but these errors were encountered: