mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-04 20:21:27 -05:00
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.
14 lines
560 B
Markdown
14 lines
560 B
Markdown
# Shared store
|
|
|
|
**Disclaimer!** This will work only on Node.js >= v6.3.0, because it uses the `--preserve-symlinks` option (read more about it: [nodejs/node#3402](https://github.com/nodejs/node/issues/3402)).
|
|
|
|
By default, `pnpm` creates a separate store for every package in it's `node_modules` folder. However, it is possible to change the value of the `store-path` config key and force `pnpm` to use a shared storage.
|
|
|
|
The easiest way to do it is via the command line:
|
|
|
|
```sh
|
|
pnpm config set store-path ~/.store
|
|
```
|
|
|
|
A shared storage can save tons of space!
|