我正在尝试第一次部署dokku应用程序。我越来越
Both npm and yarn have created lockfiles for this application,
but only one can be used to install dependencies. Installing
dependencies using the wrong package manager can result in missing
packages or subtle bugs in production.
- To use npm to install your application's dependencies please delete
the yarn.lock file.
$ git rm yarn.lock
- To use yarn to install your application's dependences please delete
the package-lock.json file.
$ git rm package-lock.json
我最初是通过带有yarn的项目创建的,但是还有一个package-lock.json文件。也许我曾经使用过npm一次。我不记得了。
我按照指示和git rm package-lock.json
再次尝试。
然后我尝试删除node_modules并使用yarn
重新安装
所以,我做了git rm yarn.lock
,删除了node_modules并安装了npm install
。
然后我试着
repo:purge-cache <app>
repo:gc <app>
并再次尝试。你猜到了
有什么建议?我有压力要部署一些东西而且我被困在这里。
你真的提交了删除文件的更改吗?这是由存储库的内容引起的错误,而不是由Dokku引起的错误。