簡體   English   中英

無法在Heroku上部署Node應用

[英]Unable to deploy Node app on Heroku

我正在嘗試從Dropbox在heroku上部署Node(MEAN)應用程序,但是得到的錯誤對我來說並不明確。

這是日志文件:-

Installing node modules (package.json)

       > bufferutil@1.2.1 install /tmp/build_40351018a3cb98a2c8dc0f452f6974b4/node_modules/bufferutil
       > node-gyp rebuild

       make: Entering directory `/tmp/build_40351018a3cb98a2c8dc0f452f6974b4/node_modules/bufferutil/build'
       CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
       SOLINK_MODULE(target) Release/obj.target/bufferutil.node
       COPY Release/bufferutil.node
       make: Leaving directory `/tmp/build_40351018a3cb98a2c8dc0f452f6974b4/node_modules/bufferutil/build'

       > utf-8-validate@1.2.1 install /tmp/build_40351018a3cb98a2c8dc0f452f6974b4/node_modules/utf-8-validate
       > node-gyp rebuild

       make: Entering directory `/tmp/build_40351018a3cb98a2c8dc0f452f6974b4/node_modules/utf-8-validate/build'
       CXX(target) Release/obj.target/validation/src/validation.o
       SOLINK_MODULE(target) Release/obj.target/validation.node
       COPY Release/validation.node
       make: Leaving directory `/tmp/build_40351018a3cb98a2c8dc0f452f6974b4/node_modules/utf-8-validate/build'

       > bluedress@0.1.0 postinstall /tmp/build_40351018a3cb98a2c8dc0f452f6974b4
       > tsd reinstall -so

       sh: 1: tsd: not found

       npm ERR! Linux 3.13.0-93-generic
       npm ERR! argv "/tmp/build_40351018a3cb98a2c8dc0f452f6974b4/.heroku/node/bin/node" "/tmp/build_40351018a3cb98a2c8dc0f452f6974b4/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_40351018a3cb98a2c8dc0f452f6974b4/.npmrc"
       npm ERR! node v5.11.1
       npm ERR! npm  v3.8.6
       npm ERR! file sh
       npm ERR! code ELIFECYCLE
       npm ERR! errno ENOENT
       npm ERR! syscall spawn
       npm ERR! bluedress@0.1.0 postinstall: `tsd reinstall -so`
       npm ERR! spawn ENOENT
       npm ERR!
       npm ERR! Failed at the bluedress@0.1.0 postinstall script 'tsd reinstall -so'.
       npm ERR! Make sure you have the latest version of node.js and npm installed.
       npm ERR! If you do, this is most likely a problem with the bluedress package,
       npm ERR! not with npm itself.
       npm ERR! Tell the author that this fails on your system:
       npm ERR!     tsd reinstall -so
       npm ERR! You can get information on how to open an issue for this project with:
       npm ERR!     npm bugs bluedress
       npm ERR! Or if that isn't available, you can get their info via:
       npm ERR!     npm owner ls bluedress
       npm ERR! There is likely additional logging output above.

       npm ERR! Please include the following file with any support request:
       npm ERR!     /tmp/build_40351018a3cb98a2c8dc0f452f6974b4/npm-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

無法理解本地可能出現的問題,一切工作正常。 我也在package.json中添加了節點版本,但是仍然遇到相同的問題。

sh: 1: tsd: not found

因此,您必須安裝tsd( https://www.npmjs.com/package/tsd

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM