Zoltan Kochan 11c8cd04c2 docs(shared-store): suggest to use the store-path config key
npm has a dash convention not an underscore convention, so better to use store-path instead of store_path, even though, pnpm can work with both.
2016-08-19 20:47:31 +03:00
2016-08-19 18:33:55 +03:00
2016-08-19 18:33:55 +03:00
2016-08-19 18:33:55 +03:00
2016-01-28 23:41:10 +08:00
2016-08-17 12:13:10 +03:00
2016-08-16 14:54:56 +03:00
2016-08-10 21:06:20 +03:00
2016-08-19 18:33:55 +03:00
2016-08-19 18:33:55 +03:00
2016-08-19 18:33:55 +03:00
2016-07-23 04:07:05 +08:00

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/
   │  ├─ chalk@1.1.1/_/
   │  │  └─ node_modules/
   │  │     ├─ ansi-styles      -> ../../../ansi-styles@2.1.0/_
   │  │     └─ has-ansi         -> ../../../has-ansi@2.0.0/_
   │  ├─ ansi-styles@2.1.0/_/
   │  └─ has-ansi@2.0.0/_/
   └─ chalk                     -> .store/chalk@1.1.1/_

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

S
Description
No description provided
Readme MIT
385 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 69.5%
TypeScript 28.7%
JavaScript 1.5%
Shell 0.2%