Skip to content

"GitError: Error: spawn git ENOENT" when trying to create an app #483

@andreabolandrina

Description

@andreabolandrina

Hi,

I'm running the repo with the master branch and the latest updates.

When creating an application (I enter the "App name" and "What are you building?" content, click "Create"), I get the following errors:

srcbook-1 | srcbook:start: Serving static files (React app)...
srcbook-1 | srcbook:start: Creating WebSocket server...
srcbook-1 | srcbook:start: Initialization complete
srcbook-1 | srcbook:start: srcbook@0.0.18 running at http://localhost:2150
srcbook-1 | srcbook:start: GitError: Error: spawn git ENOENT
srcbook-1 | srcbook:start: at ChildProcess._handle.onexit (node:internal/child_process:286:19)
srcbook-1 | srcbook:start: at onErrorNT (node:internal/child_process:484:16)
srcbook-1 | srcbook:start: at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
srcbook-1 | srcbook:start: at Object.action (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:4462:25)
srcbook-1 | srcbook:start: at PluginStore.exec (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:4501:25)
srcbook-1 | srcbook:start: at file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:1369:43
srcbook-1 | srcbook:start: at new Promise ()
srcbook-1 | srcbook:start: at GitExecutorChain.handleTaskData (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:1367:16)
srcbook-1 | srcbook:start: at GitExecutorChain. (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:1351:44)
srcbook-1 | srcbook:start: at Generator.next ()
srcbook-1 | srcbook:start: at fulfilled (file:///app/node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js:45:24) {
srcbook-1 | srcbook:start: task: { commands: [ 'init' ], format: 'utf-8', parser: [Function: parser] }
srcbook-1 | srcbook:start: }

Any idea of what I might be doing wrong?

Thanks,
Andrea

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