-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deploy Error: spawn UNKNOWN #94
Comments
Does |
The command |
Error Info INFO Start processing
INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.
EEE { Error: spawn UNKNOWN
at exports._errnoException (util.js:953:11)
at ChildProcess.spawn (internal/child_process.js:302:11)
at exports.spawn (child_process.js:372:9)
at module.exports (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\hexo-admin\deploy.js:14:14)
at E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\hexo-admin\api.js:265:7
at E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\hexo-admin\api.js:91:7
at call (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:239:7)
at next (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:183:5)
at next (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:161:14)
at next (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:161:14)
at next (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:161:14)
at next (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:161:14)
at next (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:161:14)
at next (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:161:14)
at next (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:161:14)
at next (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\connect\index.js:161:14)
at E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\body-parser\lib\read.js:129:5
at invokeCallback (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\raw-body\index.js:262:16)
at done (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\raw-body\index.js:251:7)
at IncomingMessage.onEnd (E:\WorkSpace\webProject\Hexo-oschina\blog\node_modules\raw-body\index.js:307:7)
at emitNone (events.js:86:13)
at IncomingMessage.emit (events.js:185:7) code: 'UNKNOWN', errno: 'UNKNOWN', syscall: 'spawn' }
|
Deploy uses child_process to run your deploy command. It looks like the What is the |
I think it's a permissions or shebang problem like from the posts mentioned above. You'll just have to play around with it to get it to work with Windows. What are the contents of Does deploying work when you start hexo with administrative privileges ( If that doesn't work, try setting
|
The contents of
error log
error log
error log
|
I found a compromise method to deploy blog by click the deploy button. create a
and set the |
Accoding to this issue(Using nodejs's spawn causes “unknown option — ” and “[Error: spawn ENOENT]” errors) It works! Thanks for your patiently reply. |
sorry, need generate before
|
what I alter.And I test it on win10 and ubuntu. |
Could you test this code and pull it? @pirtleshell |
This is good to know, but the idea of The batch file also worked for you, so I think the current functionality is good. This is a great thread for someone who has problems with deploying on windows in the future though! Thanks for the thorough explanation! |
Got it.I think you mean,the current functionality cloud run any command you want rather than hexo g. |
That's right 😄 And it works on windows given the right command. |
Accoding to the
I think this can do like this on windows:
and the deploy.js code is
There is a disadvantage of |
I follow #70 to do.
But there is an error when I click the 'Deploy' button.
Error is
"Error: spawn UNKNOWN"
I use windows and firefox brower.
The text was updated successfully, but these errors were encountered: