Member-only story

Use PNPM(performant) instead of NPM

Please SUBSCRIBE my YouTube Channel: FrontEnd Interview Preparation: https://www.youtube.com/channel/UC-elmWUfbcbmvuhlS12nCtg

What is PNPM?

pnpm stands for performant npm. Which is a package manager for NodeJS based projects. which focuses on speed, and an efficient way of handling disk space. It is an alternative to npm and yarn.

​ pnpm is a drop-in replacement for npm. It is built on top of npm and is much faster and more efficient than its predecessor.

It is highly disk efficient and solves inherent issues in npm.

Note: All the dependencies will be placed in global stores, not individual projects.

Highlights

  1. Fast
  2. Efficient
  3. Supports Monorepos

Let’s see a real-time example

Common Dependencies of each React App

"dependencies": {
"@testing-library/jest-dom": "⁵.16.5",
"@testing-library/react": "¹³.3.0",
"@testing-library/user-event": "¹³.5.0",
"react": "¹⁸.2.0",
"react-dom": "¹⁸.2.0",
"react-scripts": "5.0.1"…

--

--

Sonika | @Walmart | Frontend Developer | 11 Years
Sonika | @Walmart | Frontend Developer | 11 Years

No responses yet