Open eps1lon opened 4 years ago
Another option would be to include Yarn v2-specific instructions. Per https://github.com/yarnpkg/berry/issues/3327#issuecomment-906331548 :
A workaround would be to use a url hash:
yarn add @reduxjs/toolkit@https://pkg.csb.dev/reduxjs/redux-toolkit/commit/7491320d/@reduxjs/toolkit#.tgz
Ideally it would show the following regardless of the Yarn version
yarn add @reduxjs/toolkit@https://pkg.csb.dev/reduxjs/redux-toolkit/commit/7491320d/@reduxjs/toolkit/_pkg.tgz
(Got the URL from https://github.com/codesandbox/codesandbox-client/issues/6055#issuecomment-910077002)
The problem with proposed workaround is that it only works for the package that u want to install explicitly. However, Yarn Berry still wont be able to install its dependencies as they are declared the same way and the user has no control over that.
I've put some additional context here: https://github.com/codesandbox/codesandbox-ci-ui/pull/34#issuecomment-995829289
Not sure if this is appropriate here.
yarn
v2 no longer installs packages from arbitrary urls.Right now
fails with
I asked in their discord and they confirmed that tarballs need the
.tgz
extension. I tried if this url already existed but got a 404: https://pkg.csb.dev/mui-org/material-ui/commit/e9a9cdb2/@material-ui/core.tgzAlternatives:
https://csb.*