Problem description
First, an error occurred:
error:spawn failed...
After some blog operations, the following problems will occur:
fatal: cannot lock ref 'HEAD': unable to resolve reference HEAD: Invalid argument error: src refspec
Or:
error: src refspec HEAD does not match any.
The following picture is an error report after uploading GitHub by myself hexo d
:
FATAL {
err: Error: Spawn failed
at ChildProcess.<anonymous> (D:\Program Files\blog\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.cp.emit (D:\Program Files\blog\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
code: 128
}
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
Cause analysis:
The problem is mostly due to git doing a push or hexo d and changing some of the content under the .deploy_git file.
Solution:
Solution: 1
1. Delete .deploy_git
folder
2. Enter git config --global core.autocrlf false
3. Then, execute in sequence:
hexo clean
hexo g
hexo d
Solution: 2
1. Enter the hexo root directory
2 Direct the arrow to .deploy_git
and public
are deleted directly
3. Then, execute in sequence:
hexo clean
hexo g
hexo d
Be careful!!: Deleting these two folders will not affect you! After the implementation of hexo, the third company will redeploy simple violence!
Read More:
- How to Solve Hexo init error: bash: hexo: command not found
- [Solved] GLSL Lint: Failed to spawn ‘glslangValidator‘ binary. Error: spawn glslangValidator.exe ENOENT
- [Solved] Frida spawn process failed on Android ‘Error: VM::AttachCurrentThread failed: -1
- [Solved] Hexo FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
- [ERROR] [1632398141.557684, 290.045000]: Spawn service failed. Exiting.
- HEXO D Command ERROR Deployer not found: git
- Template Render Error Solution (Hexo blog theme, GIT upload)
- [Solved] VIVADO Compile Error: Spawn failed: No error
- Start failure: spawn CMD enoent error (How to Fix)
- How to Solve Error: spawn xxxx ENOENT
- [How to Modify] etcd-server-8-12: ERROR (spawn error)
- [Solved] Failed to register: Error: Failed to get admin…. run enrollAdmin.js
- [Solved] docker failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition
- [Solved] torchvision.models.resnet18() Error: PytorchStreamReader failed reading zip archive: failed finding…
- [Solved] INSTALL_FAILED_DEXOPT (DEX optimization verification failed)
- VScode Error: extension failed XHR Failed (Ubuntu Virtual Machine)
- [Solved] Installation failed due to: ‘INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: Package com.
- [Solved] Android app development version update failed, Android – error: task execution failed ‘: app: com
- Execution failed for task ‘:app:processDebugMainManifest‘.> Manifest merger failed : Apps targeting
- [Solved] Tensorflow Error: failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED