2

我有一个Node正在运行的应用程序heroku

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

所以我分叉了react-windowrepo 并使用以下方法替换了原始包:

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

4

0 回答 0