Giter Site home page Giter Site logo

pnpm's Introduction

pnpm

Performant npm installations

pnpm is a fast implementation of npm install. It is loosely based off ied.

npm version Status Windows build status


⚠️ Name change

The npm package was changed from pnpm.js (0.15 and below) to pnpm. The old package will no longer be updated. For old users, uninstall the old version and install the new one:

npm uninstall -g pnpm.js
npm install -g pnpm

Install

Install it via npm.

npm install -g pnpm

Use pnpm in place of npm. It overrides pnpm i and pnpm install—all other commands will passthru to npm.

pnpm install lodash

Custom registries

pnpm uses whatever npm's configured to use as its registry. See: custom registries.

Preview release

pnpm will stay in <1.0.0 until it's achieved feature parity with npm install. See roadmap for details.

Benchmark

time npm i babel-preset-es2015 browserify chalk debug minimist mkdirp
    66.15 real        15.60 user         3.54 sys
time pnpm i babel-preset-es2015 browserify chalk debug minimist mkdirp
    11.04 real         6.85 user         2.85 sys

Design

pnpm maintains a flat storage of all your dependencies in node_modules/.store. They are then symlinked wherever they're needed. See store layout for an explanation.

.
└─ node_modules/
   ├─ .store/
   │  ├─ [email protected]/_/
   │  │  └─ node_modules/
   │  │     ├─ ansi-styles      -> ../../../[email protected]/_
   │  │     └─ has-ansi         -> ../../../[email protected]/_
   │  ├─ [email protected]/_/
   │  └─ [email protected]/_/
   └─ chalk                     -> .store/[email protected]/_

Prior art

Thanks

pnpm © 2016+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).

ricostacruz.com  ·  GitHub @rstacruz  ·  Twitter @rstacruz

pnpm's People

Contributors

amilajack avatar andreypopp avatar asbjornenge avatar davej avatar fengmk2 avatar furqanzafar avatar greenkeeperio-bot avatar iamstarkov avatar indexzero avatar kesla avatar leipert avatar meesayen avatar misterbyrne avatar peterdavehello avatar prayagverma avatar ratson avatar rbmrclo avatar rexxars avatar rstacruz avatar vkrol avatar zkochan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.