npm和yarn都创建了锁定文件

问题描述 投票:1回答:1

我正在尝试第一次部署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 dokku-alt
1个回答
0
投票

你真的提交了删除文件的更改吗?这是由存储库的内容引起的错误,而不是由Dokku引起的错误。

© www.soinside.com 2019 - 2024. All rights reserved.