Heroku纱线部署问题:双重解决方案包

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

我正在尝试建立我们的第一个Heroku项目,但是在使部署正常工作方面遇到了麻烦。在安装软件包期间,它总是失败。有趣的是,在日志中我可以看到它尝试两次安装软件包,并且我认为两次运行都会导致出现此问题:

-----> Installing binaries
       engines.node (package.json):  ^10.16
       engines.npm (package.json):   ^6.9
       engines.yarn (package.json):  ^1.17

       Resolving node version ^10.16...
       Downloading and installing node 10.16.3...
       Bootstrapping npm ^6.9 (replacing 6.9.0)...
       npm ^6.9 installed
       Resolving yarn version ^1.17...
       Downloading and installing yarn (1.19.1)...
       Installed yarn 1.19.1

-----> Installing dependencies
       Installing node modules (yarn.lock)
       yarn install v1.19.1
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       warning package.json: No license field
       warning [email protected]: No license field
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       error https://registry.yarnpkg.com/external-editor/-/external-editor-1.1.1.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, chmod '/tmp/yarncache.BXSXb/v6/npm-external-editor-1.1.1-12d7b0db850f7ff7e7081baf4005700060c4600b-integrity/node_modules/external-editor/example_async.js'"
       info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
-----> Build failed

每次运行时,它都在另一个文件上失败,但有相同的错误。

我正在使用NodeJS buildpack。我完全不知所措。我觉得如果我能看到实际的命令正在运行,我将能够进一步诊断正在发生的事情。

以前有没有人见过这样的东西?

node.js heroku yarn
1个回答
0
投票

您可以尝试删除yarn.lock-它对我有用:)

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