0

我分叉了 react-select 以添加当前 react-select 没有的几个功能。我创建了一个分支并将其提交给我的分叉项目。现在,我想使用分叉项目。

我尝试通过以下方式安装分叉的 react-select repo,但没有成功。

yarn add @react-select/monorepo@<GithubUsername>/react-select#head=<Name of branch>&workspace=react-select

yarn add @react-select/monorepo@<GithubUsername>/react-select#commit=<commit#>&workspace=react-select

yarn add @react-select/<github url>#head=<Name of branch>&workspace=react-select

ssh我已经用, with试过了git+。纱线网站所说的一切,我得到的只是安装了反应选择,但我没有看到我的分支中的代码更改。

我也尝试安装react-selectmonorepo 使用的软件包,但出现以下错误

yarn add react-select@https://github.com/<USERNAME>/react-select/tree/master/packages/react-select

Failed with errors in 0s 290ms
(node:11491) UnhandledPromiseRejectionWarning: Error: react- 
select@https://github.com/USERNAME/react- 
select/tree/master/packages/react-select isn't supported by 
any available resolver

我在用yarn 2.4.2

有没有人处理过这个?

除了复制文件夹并从文件路径安装之外,还有什么解决方案?

4

0 回答 0