corepack
corepack copied to clipboard
[Question]How the 'COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1` use ?
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:
COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 corepack install https://repo.yarnpkg.com/4.1.1/packages/yarnpkg-cli/bin/yarn.js
or
COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 corepack prepare https://repo.yarnpkg.com/4.1.1/packages/yarnpkg-cli/bin/yarn.js
Noting worked. I have no idea. Thanks