corepack
corepack copied to clipboard
Zero-runtime-dependency package acting as bridge between Node projects and their package managers
I'm trying to run `corepack` inside devcontainers, in a `postCreateCommand`. I've upgraded `corepack` to latest: ``` npm install --yes --global corepack@latest ``` Then run: ``` corepack -v && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack...
This was added in 9a1cb385bba9ade8e9fbf5517c2bdff60295f9ed when dropping support for node v19, but I can't see any reason why for instance node v20.5.0 should be excluded.
For the most common use case where a Corepack user interacts with an already-setup-for-Corepack project, this PR doesn't change anything, the project would have a `"packageManager"` field that includes a...
Currently, the default value of `COREPACK_NPM_REGISTRY` is `https://registry.npmjs.org`. My npm registry has been changed to another one, while corepack is still using `https://registry.npmjs.org`. Setting up `COREPACK_NPM_REGISTRY` value to follow `$(npm...
This is an automated update of package manager versions
Cannot install pnpm in gitlab cicd, but it was possible last week. node version: 20.12.0
It seems like the only reason undici is our dependency is to support proxy env variables. Direct support for these env variables (NO_PROXY, HTTP_PROXY...) has been implemented in undici in...
Basically to support a `~/.corepackrc` file that allows the same config as the `COREPACK_` [environment variables](https://github.com/nodejs/corepack?tab=readme-ov-file#environment-variables). Could be exactly like `~/.npmrc` with equivalent `npm_config_` env vars, or a yarn-like `~/.corepackrc.yml`...
The document mentioned `COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1` can use custom URL to download package manager. But not make detailed description. I try that: ```shell COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 corepack install https://repo.yarnpkg.com/4.1.1/packages/yarnpkg-cli/bin/yarn.js ``` or ```shell COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 corepack...
# Issue ``` @Tobbe ➜ /workspaces/redwood (main) $ yarn -v 1.22.22 @Tobbe ➜ /workspaces/redwood (main) $ yarn error This project's package.json defines "packageManager": "[email protected]". However the current global version of...