我们使用Yarn来安装依赖项。纱线锁文件在repo中。如果与php的composer相比,当我运行yarn install时,我希望依赖项是基于锁文件安装的,并且锁文件不会改变。使用composer install for php,您可以在任何环境中为每个包安装相同的版本。我不明白为什么纱线不能以类似的方式工作。
这里是我的错误,我也遵循了链接中的说明,但是在我删除并提交heroku上的代码时,同样的错误会发生,但是相同的日志会发生数千次。我不知道我哪里错了。Two different lockfiles found: package-lock.json and yarn.lockremote: Both npm and yarn: - To use npm to install your application's dependencies please delete
remote:
You can do this from the Heroku CLI with the command Installing node modules (yarn.lockOutdated Yarn lockfile
Your application contains a Yarn lockfile (<