Skip to content

'git' is not recognized as an internal or external command while installing @sentry/node #16280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
gvillo opened this issue May 13, 2025 · 1 comment
Closed
3 tasks done

Comments

@gvillo
Copy link

gvillo commented May 13, 2025

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

9.18.0

Framework Version

React Router 7.6.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

Latest SDK version is throwing an error while installing it using a Windows PC.

 ERROR  Command failed with exit code 1: git ls-remote --refs https://github.com/getsentry/fastify-otel.git otel-v1
'git' is not recognized as an internal or external command,
operable program or batch file.

This error happened while installing the dependencies of @sentry/[email protected]

pnpm: Command failed with exit code 1: git ls-remote --refs https://github.com/getsentry/fastify-otel.git otel-v1
'git' is not recognized as an internal or external command,
operable program or batch file.
    at makeError (C:\Users\gabi_\AppData\Local\node\corepack\v1\pnpm\10.10.0\dist\pnpm.cjs:14530:17)
    at handlePromise (C:\Users\gabi_\AppData\Local\node\corepack\v1\pnpm\10.10.0\dist\pnpm.cjs:15101:33)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async getRepoRefs (C:\Users\gabi_\AppData\Local\node\corepack\v1\pnpm\10.10.0\dist\pnpm.cjs:53005:23)
    at async resolveRef (C:\Users\gabi_\AppData\Local\node\corepack\v1\pnpm\10.10.0\dist\pnpm.cjs:53017:20)
    at async resolveGit (C:\Users\gabi_\AppData\Local\node\corepack\v1\pnpm\10.10.0\dist\pnpm.cjs:52957:24)
    at async Object.resolve (C:\Users\gabi_\AppData\Local\node\corepack\v1\pnpm\10.10.0\dist\pnpm.cjs:59387:251)
    at async run (C:\Users\gabi_\AppData\Local\node\corepack\v1\pnpm\10.10.0\dist\pnpm.cjs:100003:23)
Progress: resolved 1242, reused 1105, downloaded 0, added 0              

9.17.0 works just fine.

Steps to Reproduce

  1. Use a Windows PC
  2. Install @sentry/node pkg
  3. pnpm i
  4. Fails

Expected Result

To install the package without any issues using a Windows PC.

Actual Result

Fails because it's running a git command.

@gvillo
Copy link
Author

gvillo commented May 13, 2025

my bad, for some reason git path wasn't under system env vars for some weird reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant