Comments (5)
Can you clarify what's missing today? corepack pnpm install
should already do what you expect it to do, no?
from corepack.
Why do you have enable/disable Corepack based on the project?
If packageManager
isn't specified Corepack will use the global version, whatever that is set to.
from corepack.
I just assumed it doesn't work because corepack --help
doesn't mention it. Now this is more of a documentation issue. I will change the issue title
from corepack.
Can you clarify what's missing today?
corepack pnpm install
should already do what you expect it to do, no?
Actually, there's one thing that is missing: PATH
.
The scripts in package.json
will sometimes invoke pnpm
or yarn
, but since corepack
didn't set PATH
, they will invoke the wrong versions. I know this because corepack pnpm exec which pnpm
doesn't return the right pnpm
.
from corepack.
I think that's something you should bring up to pnpm - in the case of Yarn it isn't a problem because Yarn already adds itself to the PATH, Corepack or not, precisely for this reason.
from corepack.
Related Issues (20)
- Tests fail when using Corepack v0.25.0 jumper binary HOT 2
- v0.25.0 crashes with ENOENT on fresh install HOT 12
- v0.25.0 prompts about fetching metadata
- npm install fails with node:20-alpine HOT 2
- Internal Error: ENOENT: no such file or directory, open '/root/.cache/node/corepack/lastKnownGood.json' HOT 1
- no such file or directory in Docker container HOT 1
- installation failure with Type Error: URL.canParse is not a function HOT 2
- How do we run upgrade global package managers HOT 9
- Provide reproducible build by default HOT 21
- Versions above `v0.25.0` glitches on Node v18.17.1 HOT 3
- Need goals/use cases HOT 5
- `packageManager` field is too limited HOT 11
- `packageManager` should accept a version range HOT 1
- Validation failure should be configurable HOT 4
- Validation should be configurable based on operation HOT 4
- Changing linter rules HOT 6
- Unable to use offline workflow HOT 2
- [ Error ] - NixOS - Corepack/Pnpm Version Mismatch/Internal Error HOT 2
- Using corepack behind corporate proxy and injected certificate HOT 16
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 corepack.