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)
- pnpm v9 multiple react instances
- error (ETIMEDOUT). Will retry in 10 seconds. 2 retries left. HOT 2
- Unsupported warning engine with filters
- Improve Dependency Management in React Native Monorepo
- pnpm+nexus install failed ,but npm is success HOT 1
- The terminal crashes when using Ctrl+C to exit the process. HOT 2
- allow `"patchedDependencies"` patch files to come from dependencies HOT 6
- Pnpm does not bundle subdependencies HOT 1
- Couldn't read package.json of local dependency HOT 2
- `pnpm up -i --latest` Updates unspecified packages HOT 7
- ERR_PNPM_FETCH_404 for workspace packages HOT 2
- `pnpm update --prod` installs dev dependencies
- [email protected] seems to incorrectly resolve peer dependencies HOT 4
- Updating to pnpm 9.x (from 8.12.1) and run `pnpm i` throws exception: `Cannot read properties of undefined (reading 'missingPeersOfChildren')` HOT 1
- After updating to v9, pnpm checks only npm registry HOT 2
- Exits with status code 0 even if script is not found
- Officially support `omit` config setting from `npm` HOT 2
- Threads are not joined when `pnpm -r script` is interrupted with `SIGINT`
- Fix (or document changes in) "file:" protocol HOT 5
- pnpm completion broken with corepack 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.