remix-run / remix

Build Better Websites. Create modern, resilient user experiences with web fundamentals.
https://remix.run
MIT License
29.74k stars 2.51k forks source link

create-remix ends with "Oh no! Failed to initialize git." #9986

Closed zdrummond closed 3 weeks ago

zdrummond commented 1 month ago

Reproduction

  1. Go to StackBlitz and start a vanilla Node env
  2. type npx create-remix@latest at the terminal
  3. Select Init git repo, and Install deps

Result (example at StackBlitz)

❯ npx create-remix@latest
Need to install the following packages:
create-remix@2.12.0
Ok to proceed? (y) 
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

 remix   v2.12.0 💿 Let's build a better website...

   dir   Where should we create your new project?
         ./remix-start

      ◼  Using basic template See https://remix.run/guides/templates for more
      ✔  Template copied

   git   Initialize a new git repository?
         Yes

  deps   Install dependencies with npm?
         Yes

      ✔  Dependencies installed

      ▲  Oh no! Failed to initialize git.

System Info

Stackblitz

 System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm

Used Package Manager

npm

Expected Behavior

Expected, complete without the git failure

Actual Behavior

Completes with " ▲ Oh no! Failed to initialize git."

brophdawg11 commented 1 month ago

Can you run this with --debug and paste the output? This is usually an issue with git on the local machine...

I just confirmed this is working fine for me locally.

Screenshot 2024-09-16 at 9 45 31 AM

github-actions[bot] commented 3 weeks ago

This issue has been automatically closed because we haven't received a response from the original author 🙈. This automation helps keep the issue tracker clean from issues that are unactionable. Please reach out if you have more information for us! 🙂

zdrummond commented 2 weeks ago

FWIW, ran with --debug, turned out that my SSH agent was not running, so failed with exit code 128. So not an issue with Remix. Thanks!