Open uwang opened 2 weeks ago
The document mentioned COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 can use custom URL to download package manager. But not make detailed description.
COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1
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
Try the following
COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 corepack yarn@https://repo.yarnpkg.com/4.1.1/packages/yarnpkg-cli/bin/yarn.js --version
You can also put that URL as "packageManager" in a package.json.
"packageManager"
package.json
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:
or
Noting worked. I have no idea. Thanks