Comments (4)
Hey @arcanis
I think fixing this introduced an issue that's worth resolving. If have the packageManager
set, but then run a prepare
command with a specific version listed, the value is silently ignored and the packageManager
value is adhered to. I think it'd be better for the command to fail with a helpful error or at least provide a logging statement to be less silent about the mistake.
from corepack.
@kylemh I don't think this fix has been released yet, unless you have a configuration where you're running corepack from source. Keep in mind that, when defined, packageManager
is always adhered to when using corepack yarn
, corepack pnpm
, etc. To change the package manager version that a project uses, I think you're expected to edit package.json and commit the update.
from corepack.
The docs for corepack <binary name>[@<version>] [... args]
kind of dances around this fact:
Note that those commands still check whether the local project is configured for the given package manager (ie you won't be able to run
corepack yarn install
on a project where thepackageManager
field references pnpm).
from corepack.
I am installing in CI and using it from source because I'm on Node 14.
What you're saying is totally fair, and I gathered as much... but only after a lot of investigation. There's nothing wrong with the logic, but the CLI logging offers no notice. I guess I'm suggesting that the config "winner" gets an announced in the output of a ran command.
This isn't a question about docs either. I didn't go to corepack docs because I had no CLI errors or logging which indicated implicit behavior was intercepting my explicit command.
from corepack.
Related Issues (20)
- corepack install output HOT 2
- Usage Error: This project is configured to use yarn HOT 4
- For #28023 feedback. HOT 1
- the new version of yarn build reported an error and rolled back to 0.24.1 which returned to normal HOT 2
- pnpm add -g <package-name> fails with corepack HOT 2
- Hash validation failed for yarn when `COREPACK_NPM_REGISTRY` is set on one side HOT 3
- How to debug `pnpm` inside corepack? HOT 1
- this[kClient].connect is not a function HOT 6
- Corepack runs into an internal error with newest iron node image [Proxy issue] HOT 4
- Offline workflow does not work HOT 1
- Corepack error with yarn on enable HOT 2
- Silent option on corepack HOT 1
- Frequent fetch() errors HOT 7
- Can't use `pnpm` via corepack when `COREPACK_HOME` is read-only. HOT 4
- feat: store `packageManager` property also inside the lock file HOT 5
- `COREPACK_INTEGRITY_KEYS` being ignored when corepack is spawned by other tools HOT 2
- Could we support corepack enable --yes? HOT 2
- `corepack install --global [email protected]` doesn't work HOT 2
- corepack installs pre-release version of pnpm `9.1.0-0` HOT 1
- CI/CD runs fail: Type Error: URL.canParse is not a function 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 corepack.