npm vs yarn #6379
Replies: 2 comments
-
I use yarn in my Nx I had no issue with it. I can't use npm not only it takes heavy load on my network, It takes more than hour to install dependencies. I actually hope Nx default switch over to yarn. And must give a option to create workspace in yarn and pnp support. |
Beta Was this translation helpful? Give feedback.
-
I would say your question depends on what version of yarn you're using. I assume if you're using yarn v1, there should be no issues. Offically Nx doesn't support yarn v2, as July 29th:
But I've been using yarn v2, with limited features (No yarn PnP, no Nx migrate), having no issues. @KyleBastien listed a workaround for using yarn v2 and Nx here. |
Beta Was this translation helpful? Give feedback.
-
Usually I use
yarn
in my projects, withNx
I see that the default recommendation isnpm
.Are there any downsides in using
yarn
with Nx? Or isnpm
better suited for this kind of monorepo setups?Beta Was this translation helpful? Give feedback.
All reactions