Skip to content

BUG:准备环境构建问题 #11

@beanflame

Description

@beanflame

node版本:22
pnpm版本:10

C:\Users\Admin\Desktop\blog2-main>pnpm run server

> kratos-rebirth-quickstart@0.0.0 server C:\Users\Admin\Desktop\blog2-main
> hexo server

INFO  Validating config
INFO  Start processing
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Command failed: git log --follow -1 --format="%ad" -- "C:\Users\Admin\Desktop\blog2-main\source\_posts\har.md"
fatal: not a git repository (or any of the parent directories): .git

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at checkExecSyncError (node:child_process:891:11)
    at execSync (node:child_process:963:15)
    at getUpdated (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\hexo-filter-date-from-git@0.2.0\node_modules\hexo-filter-date-from-git\index.js:39:19)
    at Hexo.<anonymous> (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\hexo-filter-date-from-git@0.2.0\node_modules\hexo-filter-date-from-git\index.js:22:20)
    at Hexo.tryCatcher (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\bluebird@3.7.2\node_modules\bluebird\js\release\util.js:16:23)
    at Hexo.<anonymous> (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\bluebird@3.7.2\node_modules\bluebird\js\release\method.js:15:34)
    at C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\hexo@7.3.0_chokidar@3.6.0\node_modules\hexo\dist\extend\filter.js:58:67
    at tryCatcher (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\bluebird@3.7.2\node_modules\bluebird\js\release\util.js:16:23)
    at Object.gotValue (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\bluebird@3.7.2\node_modules\bluebird\js\release\reduce.js:166:18)
    at Object.gotAccum (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\bluebird@3.7.2\node_modules\bluebird\js\release\reduce.js:155:25)
    at Object.tryCatcher (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\bluebird@3.7.2\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\bluebird@3.7.2\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\bluebird@3.7.2\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (C:\Users\Admin\Desktop\blog2-main\node_modules\.pnpm\bluebird@3.7.2\node_modules\bluebird\js\release\promise.js:649:10)
 ELIFECYCLE  Command failed with exit code 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions