Comments (4)
i believe you can use corepack and the packageManager package.json field for that
from pnpm.
Yes, just use corepack if you need this.
from pnpm.
Thank you for the suggestions of using corepack. This is an improvement but it still has some pain points.
- By default the shims are installed to
/usr/bin
, unless configured otherwise, which requires root and clobbers any package-manager installed version. - If a different installation directory is chosen, we have to make sure that is on the PATH, and this still shadows the package-manager installed version.
- It's another tool and setup step that makes onboarding more complicated than it needs to be.
Additionally, I'm not convinced by the "there is an existing tool" argument as the same could be made for the built-in Node version management, as nvm
and volt
already exist.
I think that there is real value in the idea that you can install an up-to-date version of pnpm and that's all you need if the project has been configured to specify the required versions.
from pnpm.
Our goal should be to make pnpm reliable enough, so that you don't care which version you run. You don't select a specific version of Git for your project, right?
So, as there is corepack at the moment, I don't think we should work on this. Maybe we'll do it some day but I don't think it is a priority. I don't see any problem with corepack except that you won't be able to globally manage node.js with pnpm if you use it. Corepack is easy to use because it is shipped with node.js, you just need to run corepack enable
. Hence, I am not convinced that it complicates onboarding. We can print more details in the error message, when the package manager field is present and pnpm's version doesn't match.
from pnpm.
Related Issues (20)
- Updating to pnpm 9 cause `pnpm install` to look for a workspace dependency on npm HOT 3
- install script throws ETXTBSY ETXTBSY: text file is busy, copyfile '/tmp/tmp.rPcedmGtun/pnpm' -> '/home/capaj/.local/share/pnpm/pnpm'
- v9.2.0 `pnpm --filter=mypackage exec some-command` produces unexpected output HOT 2
- ERR_PNPM_NO_MATCHING_VERSION HOT 1
- Error installing `parcel` (ELIFECYCLE - exit code 126) HOT 3
- `pnpm fetch` fails if at least one injected workspace dependency exists in the monorepo
- Monorepo resolve error when using nextui. HOT 2
- `pnpm update` does not patch update `0.x` production dependencies HOT 2
- Option to ignore carets HOT 2
- Inconsistent install behaviour due to config variable namings in Turkish locale
- pnpm breaks federated modules HOT 1
- strict package manager HOT 4
- Updated must restart HOT 1
- Esbuild post-install failure with pnpm 9.3.0 HOT 4
- Changing the index files name in the package store
- pack & deploy does not include symlinks in packages HOT 3
- sub-dependencies versions are not resolved/updated correctly HOT 2
- `pnpm install` can delete the node_modules folder then re-create it, causing custom attributes to be lost HOT 4
- pnpm install still uses sha1 keys HOT 1
- upgrade command update versions in dependencies and devDependencies, but not update variable reference version in pnpm.overrides to lockfile
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.