Comments (10)
i got better use cases for you:
- keep the store in
~/.pnpm/node-4/store/
so that Babel doesn't take up 100MB for every project I have - since the 'global' store is prepended by the node major version, I can switch node versions and switch my compiled modules out by symlinks
this is actually the very reason I put pnpm together! I'm still contemplating on how to best do this, whether it's to symlink ~/.pnpm/node-4/store/[email protected]
-> ~/project/node_modules/.store/[email protected]
-> ~/project/node_modules/lodash
, or to skip the 2nd symlink entirely. Both have their pros and cons and I'm waiting to use pnpm for a while to get a feel of which would be the better approach. π
from pnpm.
Ooh! I like where this is going! π»
from pnpm.
@rstacruz what's the potential benefit of the extra symlink?
PS: the symlink approach is great in general since It saves tons of rm -rf node_modules && npm i
though you will run into problems with babel and plugin-ish modules since people rely on the implementation details of npm occasionally. So expect to do a bit of hackery.
from pnpm.
jkroso: easier to account for what packages may (or may not) be in use. what if you stop using a dependency in one of your projects... how do we keep track that no project needs it anymore?
from pnpm.
okay there's a super secret flag that lets you do this:
npm config set pnpm_store_path node_modules/.store # <- default
not documenting it though, it's easy to screw this up if you don't know what you're doing
from pnpm.
Setting this flag does not seem to work for me, the packages are still stored in node_modules/.store.
Ideas are welcome
from pnpm.
Nvm, the flag is renamed to store_path it seems
from pnpm.
hey, I documented the usage of a shared store: https://github.com/rstacruz/pnpm/blob/master/docs/recipes/shared-store.md
from pnpm.
Great! Thanks
from pnpm.
The link to the pnpm shared store is now dead. Pointing to that other issue for SEO.
from pnpm.
Related Issues (20)
- scripts are not running by correct order in workspace recursive install HOT 1
- peerDependencies do not participate in ordering
- pnpm i ~ No such file or directory | MacOS M1 HOT 1
- onlyBuiltDependenciesFile should log skipped postinstalls HOT 5
- exit code is not preserved in pnpm run
- `pnpm install --frozen-lockfile` doesn't fail when it should
- **/.env published to npm by default.
- Add Output option --reporter to help of pnpm import
- Race condition in "@zkochan/cmd-shim" produces corrupted bin scripts HOT 2
- Set destination filename with pnpm pack
- `cd` command failed on Windows with `shell-emulator=true` in `.npmrc`
- `pnpm install --silent` hangs if some deps can't be satisfied
- Wrong tag stated in `pnpm publish` output
- `pnpm licenses ls` does not list optionalDependencies of dependencies HOT 2
- `corepack pnpm@<version>` doesn't work anymore. HOT 4
- `ERR_PNPM_OTHER_PM_EXPECTEDβ This project is configured to use yarn` while installing git-hosted package
- Broken bin scripts in Windows HOT 1
- require() does not work for optionalDependencies HOT 1
- Add a `use-pnpm-version` option to .npmrc to specify a project-specific version and use it automatically HOT 4
- Absolute paths in pnpm-lock.yml when using resolutions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pnpm.