Node.js 如何部署包含分叉github repo的heroku应用程序

Node.js 如何部署包含分叉github repo的heroku应用程序,node.js,github,heroku,react-window,Node.js,Github,Heroku,React Window,我有一个运行在heroku上的节点应用程序 现在我想对我正在使用的包react窗口进行一些更改(我第一次尝试这个) 因此,我分叉了react窗口repo,并使用以下方法替换了原始包装: yarn remove react-window yarn add https://github.com/myusername/react-window.git 当我在本地机器上构建这个时,一切都很好,并且使用了分叉包 但是,当我尝试在heroku上部署它时,构建失败,我得到以下错误: error https

我有一个运行在heroku上的
节点
应用程序

现在我想对我正在使用的包
react窗口
进行一些更改(我第一次尝试这个)

因此,我分叉了
react窗口
repo,并使用以下方法替换了原始包装:

yarn remove react-window

yarn add https://github.com/myusername/react-window.git
当我在本地机器上构建这个时,一切都很好,并且使用了分叉包

但是,当我尝试在heroku上部署它时,构建失败,我得到以下错误:

error https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, chmod '/tmp/yarncache.wxh1C/v4/npm-@babel-runtime-7.0.0-adeb78fedfc855aa05bc041640f3f6f98e85424c/node_modules/@babel/runtime/helpers/asyncIterator.js'"
我试图指向一个特定的分支,但这也不起作用:

yarn add https://github.com/myusername/react-window.git#master
当我重新安装原始软件包时,一切又恢复正常

因此,我的问题是:在部署到
heroku
时,添加分叉包的正确方法是什么