简体   繁体   English

不确定为什么在尝试将 Github Rep 发布到 Heroku 时出现错误

[英]Unsure why I am getting errors when attempting to publish Github Rep to Heroku

I wanted to create and customize an internal mobile device checkout system for work (to better keep inventory).我想为工作创建和定制一个内部移动设备结账系统(以更好地保持库存)。 I found this project on GitHub, that seemed like I could use its design pattern as a framework for my system.我在 GitHub 上找到了这个项目,看起来我可以使用它的设计模式作为我系统的框架。

The problem is, after I forked it and attempted to publish on Heroku, I kept getting deployment errors.问题是,在我将它分叉并尝试在 Heroku 上发布之后,我一直收到部署错误。 Unsure if this project is broken, or I something I am missing.不确定这个项目是否损坏,或者我缺少什么。 I am open to other github repos that use JS and MongoDB, as well.我也对使用 JS 和 MongoDB 的其他 github 存储库持开放态度。

Any help appreciated任何帮助表示赞赏

Project: https://intense-scrubland-74617.herokuapp.com/https://intense-scrubland-74617.herokuapp.com/项目: https://intense-scrubland-74617.herokuapp.com/https://intense-scrubland-74617.herokuapp.com/

Deployment Errors shown from Heroku: Heroku 显示的部署错误:

    -----> Node.js app detected

    -----> Creating runtime environment

           NPM_CONFIG_LOGLEVEL=error
           NODE_ENV=production
           NODE_MODULES_CACHE=true
           NODE_VERBOSE=false

    -----> Installing binaries
           engines.node (package.json):  unspecified
           engines.npm (package.json):   unspecified (use default)

           Resolving node version 12.x...
           Downloading and installing node 12.16.2...
           Using default npm version: 6.14.4

    -----> Installing dependencies
           Installing node modules (package.json)

           > bcrypt@1.0.3 install /tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt
           > node-pre-gyp install --fallback-to-build

           node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v72-linux-x64.tar.gz 
           node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.3 and node@12.16.2 (node-v72 ABI) (falling back to source compile with node-gyp) 
           node-pre-gyp ERR! Tried to download(undefined): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v72-linux-x64.tar.gz 
           node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.3 and node@12.16.2 (node-v72 ABI) (falling back to source compile with node-gyp) 
           make: Entering directory '/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/build'
             CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
           make: Entering directory '/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/build'
             CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
           sed: can't read ./Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw: No such file or directory
           rm: cannot remove './Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw': No such file or directory
           bcrypt_lib.target.mk:113: recipe for target 'Release/obj.target/bcrypt_lib/src/blowfish.o' failed
           make: *** [Release/obj.target/bcrypt_lib/src/blowfish.o] Error 1
           make: Leaving directory '/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/build'
             CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
           gyp ERR! build error 
           gyp ERR! stack Error: `make` failed with exit code: 2
           gyp ERR! stack     at ChildProcess.onExit (/tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
           gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
           gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
           gyp ERR! System Linux 4.4.0-1062-aws
           gyp ERR! command "/tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/bin/node" "/tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/lib/binding"
           gyp ERR! cwd /tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt
           gyp ERR! node -v v12.16.2
           gyp ERR! node-gyp -v v5.1.0
           gyp ERR! not ok 
           node-pre-gyp ERR! build error 
           node-pre-gyp ERR! stack Error: Failed to execute '/tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/bin/node /tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/lib/binding' (1)
           node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
           node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
           node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
           node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
           node-pre-gyp ERR! System Linux 4.4.0-1062-aws
           node-pre-gyp ERR! command "/tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/bin/node" "/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
           node-pre-gyp ERR! cwd /tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt
           node-pre-gyp ERR! node -v v12.16.2
           node-pre-gyp ERR! node-pre-gyp -v v0.6.36
           node-pre-gyp ERR! not ok 
           Failed to execute '/tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/bin/node /tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/lib/binding' (1)
           ../src/bcrypt.cc: In function ‘void encode_salt(char*, u_int8_t*, u_int16_t, u_int8_t)’:
           ../src/bcrypt.cc:132:1: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
            encode_salt(char *salt, u_int8_t *csalt, u_int16_t clen, u_int8_t logr)
            ^~~~~~~~~~~
           In file included from /usr/include/stdio.h:862:0,
                            from ../src/bcrypt.cc:48:
           /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output between 4 and 5 bytes into a destination of size 4
                   __bos (__s), __fmt, __va_arg_pack ());
                                                       ^
           ../src/bcrypt.cc: In function ‘void bcrypt(const char*, const char*, char*)’:
           ../src/bcrypt.cc:165:1: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
            bcrypt(const char *key, const char *salt, char *encrypted)
            ^~~~~~
           In file included from /usr/include/stdio.h:862:0,
                            from ../src/bcrypt.cc:48:
           /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output between 4 and 5 bytes into a destination of size 4
                   __bos (__s), __fmt, __va_arg_pack ());
                                                       ^
           touch: cannot touch './Release/.deps/Release/obj.target/bcrypt_lib/src/bcrypt.o.d.raw': No such file or directory
           bcrypt_lib.target.mk:113: recipe for target 'Release/obj.target/bcrypt_lib/src/bcrypt.o' failed
           make: *** [Release/obj.target/bcrypt_lib/src/bcrypt.o] Error 1
           make: Leaving directory '/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/build'
           gyp ERR! build error 
           gyp ERR! stack Error: `make` failed with exit code: 2
           gyp ERR! stack     at ChildProcess.onExit (/tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
           gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
           gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
           gyp ERR! System Linux 4.4.0-1062-aws
           gyp ERR! command "/tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/bin/node" "/tmp/build_a348ac309513585e6a80cd4583b613dc/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt/lib/binding"
           gyp ERR! cwd /tmp/build_a348ac309513585e6a80cd4583b613dc/node_modules/bcrypt
           gyp ERR! node -v v12.16.2
           gyp ERR! node-gyp -v v5.1.0
           gyp ERR! not ok 
           npm ERR! code ELIFECYCLE
           npm ERR! errno 1
           npm ERR! bcrypt@1.0.3 install: `node-pre-gyp install --fallback-to-build`
           npm ERR! Exit status 1
           npm ERR! 
           npm ERR! Failed at the bcrypt@1.0.3 install script.
           npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

           npm ERR! A complete log of this run can be found in:
           npm ERR!     /tmp/npmcache.3bDXq/_logs/2020-04-27T01_49_47_939Z-debug.log
    -----> Build failed

           We're sorry this build is failing! You can troubleshoot common issues here:
           https://devcenter.heroku.com/articles/troubleshooting-node-deploys

           Some possible problems:

           - Node version not specified in package.json
             https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

           Love,
           Heroku

     !     Push rejected, failed to compile Node.js app.
     !     Push failed 

see how that is看看怎么样

You are installing two incompatible packages.您正在安装两个不兼容的软件包。

Downloading and installing node 12.16.2...正在下载并安装节点 12.16.2...
... ...
> bcrypt@1.0.3 install > bcrypt@1.0.3 安装

For node 12+, you must install bcrypt version 3.0.6 or greater.对于节点 12+,您必须安装 bcrypt 版本 3.0.6 或更高版本。

Reference:参考:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试从 CSS 加载背景图像时出现 404 错误。 不确定如何进行 - I am getting a 404 error when attempting to load a background-image from CSS. Unsure how to proceed 为什么在尝试使用Meteor搜索源包时出现错误? - Why am I getting an error when attempting to use the Meteor search-source package? 为什么在尝试循环下一个 js 页面中的数据(使用 getStaticProps)时我得到未定义? - Why am I getting undefined when attempting to loop over data in next js page (using getStaticProps)? 为什么会出现这两个错误? - Why am I getting these two errors? 为什么我的exec出现可变错误 - Why am I getting variable errors with exec 为什么我的JavaScript出错? - Why am I getting errors with my JavaScript? 尝试使用sendgrid发送电子邮件时出错 - I am getting an error when attempting to use sendgrid to send email 带有 Nock 的 Mocha Chai:为什么在“after()”和“afterEach()”中进行清理时会出现超时错误? - Mocha Chai with Nock: why am I getting timeout errors when doing cleanup in 'after()' and 'afterEach()'? 尝试在Google跟踪代码管理器中发布对讲机代码的更改时,为什么会出现JavaScript编译器错误? - Why am I getting a JavaScript compiler error when trying to publish changes to my intercom tag in Google Tag Manager? 不确定为什么将字符串传递给函数时出现语法错误 - Unsure why I'm getting a syntax error when passing string to function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM