pnpm not working with nx - more explained inside
See original GitHub issueHi,
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
➜ deleteme2 git:(master) npm run nx
> deleteme2@0.0.0 nx /Users/ian/Development/Personal/typescript/deleteme2
> nx
Nx - Extensible Dev Tools for Monorepos.
But on the pnpm one
➜ instant-accounts git:(feature/initial-setup) ✗ npm run nx
> instant-accounts-ws@0.0.0 nx /Users/ian/Development/Personal/typescript/instant-accounts
> nx
sh: nx: command not found
Anybody managed to get a good workflow working with pnpm and nx ?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Pnpm and Nx monorepo. Part 2 - Javier Brea
In this post we are going to see how to build a monorepo using Pnpm and Nx, that, used together, will cover all...
Read more >Setup a Monorepo with PNPM workspaces and speed it up ...
In this article we're going to have a deep dive into setting up a new monorepo using PNPM workspaces that hosts a Remix...
Read more >Adding Nx to NPM/Yarn/PNPM Workspace
In a package-based monorepo, Nx only manages the scheduling and caching of your npm scripts. Hence, it can easily be adopt incrementally by...
Read more >Switching an NX repo to use PNPM - Medium
Things to note. Ensure you build/run everything after conversion. PNPM does not hoist all dependencies into your node_modules root, this means if the...
Read more >pnpm/pnpm - Gitter
Is anyone else having issues with pnpm and nextjs/react? ... Window does not exist globally in the Node package so the JQuery type...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Having similar issues on migration attempt.
There are still issues with pnpm. Simply following NX tutorial and generating a new project then running
pnpm i
, nothing works in VSCode. The NX Console extension doesn’t work and VSCode doesn’t pick up on any types or modules. Removingnode_modules
and runningnpm i
fixes all issues.