DEV Community

Discussion on: NPM Start Problems

Collapse
 
darksmile92 profile image
Robin Kretzschmar

I discovered pnpm for myself just recently and must say I'm very pleased with it and have no such problems since I switched to pnpm.

GitHub logo pnpm / pnpm

πŸ“¦πŸš€ Fast, disk space efficient package manager

pnpm

Fast, disk space efficient package manager

npm version Status Coverage Status Join the chat at https://gitter.im/pnpm/pnpm OpenCollective OpenCollective Twitter Follow

Features:

  • Fast. As fast as npm and Yarn.
  • Efficient. One version of a package is saved only ever once on a disk.
  • Great for monorepos.
  • Strict. A package can access only dependencies that are specified in its package.json.
  • Deterministic. Has a lockfile called pnpm-lock.yaml.
  • Works everywhere. Works on Windows, Linux and OS X.

Like this project? Let people know with a tweet.

Table of Contents

Background

pnpm uses hard links and symlinks to save one version of a module only ever once on a disk When using npm or Yarn for example, if you have 100 projects using the same version of lodash, you will have 100 copies of lodash on disk. With pnpm, lodash will be saved in a single place on the disk and a hard link will put it into…