(远程拒绝)主 - >主人(预先接收挂钩拒绝)

时间:2017-03-14 15:42:29

标签: node.js git mongodb express heroku

我在赶往Heroku时遇到了问题。这发生在我的第一个“Git push Heroku Master”上。我正在使用Node JS。

我得到的错误如下:

查看下面的整个错误日志。在尝试将我的项目推送到Heoku时,请告诉我出错的地方。

   andrewleonardi:~/workspace/HelpMeRV/V1 (master) $ git push heroku master
Counting objects: 39, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (35/35), done.
Writing objects: 100% (39/39), 11.80 KiB | 0 bytes/s, done.
Total 39 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Node.js app detected
remote: 
remote: -----> Creating runtime environment
remote:        
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NPM_CONFIG_PRODUCTION=true
remote:        NODE_VERBOSE=false
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote: 
remote: -----> Installing binaries
remote:        engines.node (package.json):  4.1.1
remote:        engines.npm (package.json):   unspecified (use default)
remote:        
remote:        Downloading and installing node 4.1.1...
remote:        Using default npm version: 2.14.4
remote: 
remote: -----> Restoring cache
remote:        Skipping cache restore (new runtime signature)
remote: 
remote: -----> Building dependencies
remote:        Installing node modules (package.json)
remote:        
remote:        > deasync@0.1.9 install /tmp/build_7c427b7600b55b6ea32823b63fa7f741/node_modules/locus/node_modules/deasync
remote:        > node ./build.js
remote:        
remote:        `linux-x64-node-4` exists; testing
remote:        Binary is fine; exiting
remote:        
remote:        > nodewebkit@0.11.6 postinstall /tmp/build_7c427b7600b55b6ea32823b63fa7f741/node_modules/nodewebkit
remote:        > node scripts/install.js
remote:        
remote:        stream.js:74
remote:        throw er; // Unhandled stream error in pipe.
remote:        ^
remote:        
remote:        Error: invalid tar file
remote:        at Extract.Parse._startEntry (/tmp/build_7c427b7600b55b6ea32823b63fa7f741/node_modules/nodewebkit/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:145:13)
remote:        at Extract.Parse._process (/tmp/build_7c427b7600b55b6ea32823b63fa7f741/node_modules/nodewebkit/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:127:12)
remote:        at BlockStream.<anonymous> (/tmp/build_7c427b7600b55b6ea32823b63fa7f741/node_modules/nodewebkit/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:47:8)
remote:        at emitOne (events.js:77:13)
remote:        at BlockStream.emit (events.js:169:7)
remote:        at BlockStream._emitChunk (/tmp/build_7c427b7600b55b6ea32823b63fa7f741/node_modules/nodewebkit/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:145:10)
remote:        at BlockStream.resume (/tmp/build_7c427b7600b55b6ea32823b63fa7f741/node_modules/nodewebkit/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:58:15)
remote:        at Extract.Reader.resume (/tmp/build_7c427b7600b55b6ea32823b63fa7f741/node_modules/nodewebkit/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/lib/reader.js:255:34)
remote:        at DirWriter.<anonymous> (/tmp/build_7c427b7600b55b6ea32823b63fa7f741/node_modules/nodewebkit/node_modules/download/node_modules/decompress/node_modules/tar/lib/extract.js:57:8)
remote:        at emitNone (events.js:67:13)
remote:        npm ERR! Linux 3.13.0-112-generic
remote:        npm ERR! argv "/tmp/build_7c427b7600b55b6ea32823b63fa7f741/.heroku/node/bin/node" "/tmp/build_7c427b7600b55b6ea32823b63fa7f741/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_7c427b7600b55b6ea32823b63fa7f741/.npmrc"
remote:        npm ERR! node v4.1.1
remote:        npm ERR! npm  v2.14.4
remote:        npm ERR! code ELIFECYCLE
remote:        
remote:        npm ERR! nodewebkit@0.11.6 postinstall: `node scripts/install.js`
remote:        npm ERR! Exit status 1
remote:        npm ERR!
remote:        npm ERR! Failed at the nodewebkit@0.11.6 postinstall script 'node scripts/install.js'.
remote:        npm ERR! This is most likely a problem with the nodewebkit package,
remote:        npm ERR! not with npm itself.
remote:        npm ERR! Tell the author that this fails on your system:
remote:        npm ERR!     node scripts/install.js
remote:        npm ERR! You can get their info via:
remote:        npm ERR!     npm owner ls nodewebkit
remote:        npm ERR! There is likely additional logging output above.
remote:        
remote:        npm ERR! Please include the following file with any support request:
remote:        npm ERR!     /tmp/build_7c427b7600b55b6ea32823b63fa7f741/npm-debug.log
remote: 
remote: -----> Build failed
remote:        
remote:        We're sorry this build is failing! You can troubleshoot common issues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:        
remote:        If you're stuck, please submit a ticket so we can help:
remote:        https://help.heroku.com/
remote:        
remote:        Love,
remote:        Heroku
remote:        
remote:  !     Push rejected, failed to compile Node.js app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to frozen-escarpment-22835.
remote: 
To https://git.heroku.com/frozen-escarpment-22835.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/frozen-escarpment-22835.git'

1 个答案:

答案 0 :(得分:1)

查看package还有一些与您遇到的问题相同的其他未解决问题。

但是,您可能需要查看自述文件中的 ATTENTION 标签,并尝试更新到最新的重命名版本,看看是否有同样的问题

  

注意

     自版本0.12.0起,

node-webkit已重命名为nw.js.新的和   nw.js的官方安装程序现在是npm install nw,repo是   位于github.com/nwjs/npm-installer

     

所有未来版本&gt; = 0.12.0将通过nw发布。

相关问题