jaredly / hexo-admin

An Admin Interface for Hexo
http://jaredly.github.io/hexo-admin/
1.76k stars 298 forks source link

hexo-admin deploy 出现Error: spawn UNKNOWN 的错误 #194

Open binbin1808 opened 4 years ago

binbin1808 commented 4 years ago

EEE { Error: spawn UNKNOWN at ChildProcess.spawn (internal/child_process.js:366:11) at spawn (child_process.js:538:9) at module.exports (C:\Users\彬彬\Desktop\blog\node_modules\hexo-admin\deploy.js:14:14) at C:\Users\彬彬\Desktop\blog\node_modules\hexo-admin\api.js:413:7 at C:\Users\彬彬\Desktop\blog\node_modules\hexo-admin\api.js:141:7 at call (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:239:7) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:183:5) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at next (C:\Users\彬彬\Desktop\blog\node_modules\connect\index.js:161:14) at C:\Users\彬彬\Desktop\blog\node_modules\body-parser\lib\read.js:130:5 at invokeCallback (C:\Users\彬彬\Desktop\blog\node_modules\raw-body\index.js:224:16) at done (C:\Users\彬彬\Desktop\blog\node_modules\raw-body\index.js:213:7) at IncomingMessage.onEnd (C:\Users\彬彬\Desktop\blog\node_modules\raw-body\index.js:273:7) at IncomingMessage.emit (events.js:194:15) errno: 'UNKNOWN', code: 'UNKNOWN', syscall: 'spawn' }

binbin1808 commented 4 years ago

求大佬给个解决方案呀

winterZhao commented 4 years ago

直接改的代码,他代码里用的nodejs的spawn,找到这里(C:\Users\彬彬\Desktop\blog\node_modules\hexo-admin\deploy.js:14,改一下源码,我是这么做的

binbin1808 commented 4 years ago

嗯嗯我去试试看