2017-03-14 52 views
0

我在推送到Heroku時遇到問題。這發生在我的第一個「Git推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:  > [email protected] 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:  > [email protected] 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! [email protected] postinstall: `node scripts/install.js` 
remote:  npm ERR! Exit status 1 
remote:  npm ERR! 
remote:  npm ERR! Failed at the [email protected] 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' 
+0

請上傳整個生成日誌 – Varedis

+0

@Varedis完成! – AndrewLeonardi

回答

1

看看package還有一些其他與您遇到的問題相關的未解決的問題。

但是,您可能希望籤自述大注意標籤,並嘗試更新到最新命名的版本,看看你是否有同樣的問題

注意

節點的webkit在版本0.12.0之後被重命名爲nw.js。對於nw.js新 官方安裝現在NPM安裝NW和回購位於github.com/nwjs/npm-installer

所有未來的版本> = 0.12.0將通過NW發佈 。

+0

這幾乎做到了!謝謝。我安裝了新的node-webkit(npm install nw)並從package.json中取出了舊的。我確實在package.json中保留了「start」:「node app.js」,並且一切正常。 謝謝! – AndrewLeonardi

相關問題