@[hexo 相关错误]
1.hexo d 错误
$ hexo d
ERROR Deployer not found: git
bash: S: command not found
1.解决方法:
npm install --save hexo-deployer-git
npm install -- save hexo-deployer-git
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\hexo-admin\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ save@2.4.0
+ hexo-deployer-git@2.1.0
added 12 packages from 11 contributors, removed 1 package and audited 2728 packages in 35.812s
6 packages are looking for funding
run `npm fund` for details
found 21 vulnerabilities (6 low, 6 moderate, 8 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
bash: S: command not found
2.然后重新执行就OK了
$ hexo d
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...