Using pnpm instead of npm or yarn

My disk space was getting low and I knew I had to delete some of the node_modules from my projects. I was looking for a way where dependencies between projects could be easily shared without downloading again or copying the packages into the current pr…


This content originally appeared on DEV Community and was authored by Aashutosh Poudel

My disk space was getting low and I knew I had to delete some of the node_modules from my projects. I was looking for a way where dependencies between projects could be easily shared without downloading again or copying the packages into the current project directory.
pnpm is exactly the tool designed to solve these issues. It creates hard links to different packages instead of storing entire packages. Just remove the old node_modules folder and run pnpm install inside your project and you're good to go.

References:

  1. https://pnpm.io/motivation
  2. https://www.infoq.com/news/2020/06/pnpm-javascript-package-manager/
  3. https://pnpm.io/cli/install


This content originally appeared on DEV Community and was authored by Aashutosh Poudel


Print Share Comment Cite Upload Translate Updates
APA

Aashutosh Poudel | Sciencx (2022-05-08T17:24:51+00:00) Using pnpm instead of npm or yarn. Retrieved from https://www.scien.cx/2022/05/08/using-pnpm-instead-of-npm-or-yarn/

MLA
" » Using pnpm instead of npm or yarn." Aashutosh Poudel | Sciencx - Sunday May 8, 2022, https://www.scien.cx/2022/05/08/using-pnpm-instead-of-npm-or-yarn/
HARVARD
Aashutosh Poudel | Sciencx Sunday May 8, 2022 » Using pnpm instead of npm or yarn., viewed ,<https://www.scien.cx/2022/05/08/using-pnpm-instead-of-npm-or-yarn/>
VANCOUVER
Aashutosh Poudel | Sciencx - » Using pnpm instead of npm or yarn. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/05/08/using-pnpm-instead-of-npm-or-yarn/
CHICAGO
" » Using pnpm instead of npm or yarn." Aashutosh Poudel | Sciencx - Accessed . https://www.scien.cx/2022/05/08/using-pnpm-instead-of-npm-or-yarn/
IEEE
" » Using pnpm instead of npm or yarn." Aashutosh Poudel | Sciencx [Online]. Available: https://www.scien.cx/2022/05/08/using-pnpm-instead-of-npm-or-yarn/. [Accessed: ]
rf:citation
» Using pnpm instead of npm or yarn | Aashutosh Poudel | Sciencx | https://www.scien.cx/2022/05/08/using-pnpm-instead-of-npm-or-yarn/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.