错误:在Linux环境下生成EACCESS子进程

时间:2018-07-06 10:42:47

标签: node.js heroku child-process

我正在尝试在NodeJs中使用child_process模块​​。 在Windows下,似乎一切正常。但是,在Linux环境(Heroku沙箱部署)下,我不断收到以下错误:

    { Error: spawn EACCES
at _errnoException (util.js:992:11)
at ChildProcess.spawn (internal/child_process.js:323:11)
at Object.exports.spawn (child_process.js:502:9)
at Promise (/app/core/PlagiarizeChecker.js:125:24)
at new Promise (<anonymous>)
at PlagiarizeChecker.checkText (/app/core/PlagiarizeChecker.js:104:15)
at PlagiarizeChecker.start (/app/core/PlagiarizeChecker.js:24:10)
at new PlagiarizeChecker (/app/core/PlagiarizeChecker.js:17:7)
at app.post (/app/app.js:43:18)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at next (/app/node_modules/express/lib/router/route.js:137:13)
at /app/node_modules/body-parser/lib/read.js:130:5
at invokeCallback (/app/node_modules/raw-body/index.js:224:16)
at done (/app/node_modules/raw-body/index.js:213:7)
at IncomingMessage.onEnd (/app/node_modules/raw-body/index.js:273:7)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9) code: 'EACCES', errno: 'EACCES', syscall: 'spawn' }

0 个答案:

没有答案