推动Heroku失败 - sinon-mongoose,grpc,node-pre-gyp

时间:2017-11-15 17:19:45

标签: node.js mongodb heroku

直到昨天我才能推到Heroku。目前,我通过以下错误消息拒绝了对Heroku的推送:

Installing node modules (yarn.lock)
yarn install v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > sinon-mongoose@1.3.0" has incorrect peer dependency "sinon@1".
[4/4] Building fresh packages...
error /tmp/build_592ecabd23ba493189b9cac8d/node_modules/multer-gcs/node_modules/grpc: Command failed.
Exit code: 127
Command: ./node_modules/.bin/node-pre-gyp install --fallback-to-build
Arguments:
Directory: /tmp/build_592ecabd23ba493189b9cac8d/node_modules/multer-gcs/node_modules/grpc
Output:
/bin/sh: 1: ./node_modules/.bin/node-pre-gyp: not found
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

奇怪的是node-pre-gyp在指定的文件路径中。我怎样才能推动工作?我还尝试更新package.json,指定engines.nodeengines.npmengines.yarn的版本,因为错误消息中提到了这些版本。

更新

我现在知道问题来自gcloud"gcloud":"^0.37.2";) 因为我暂时从package.json删除了该模块并再次推送,并且推送没有出现错误消息。

0 个答案:

没有答案