节点插件,部署到heroku时为“无效的ELF标头”

时间:2019-02-17 13:15:45

标签: heroku node-addon

  • 节点版本:v10.15.0
  • 平台:Windows 7 64位。

嗨。我当前在节点插件上遇到问题,在本地计算机上执行时工作正常,但是在heroku上,我遇到了“应用程序错误”,heroku logs --tail给了我这个:

Error: /app/plagiarismAlgo/build/Release/plagiarism.node: invalid ELF header
at Object.Module._extensions..node (internal/modules/cjs/loader.js:718:18)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/app/routes/api/plagiarism.js:9:20)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/app/app.js:12:20)
at Module._compile (internal/modules/cjs/loader.js:689:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! capstone@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the capstone@1.0.0 start 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!     /app/.npm/_logs/2019-02-17T12_45_25_209Z-debug.log

我看到了一些相关的帖子,但是对我来说都不起作用。

0 个答案:

没有答案