8000 'git' is not recognized as an internal or external command while installing @sentry/node · Issue #16280 · getsentry/sentry-javascript · GitHub
[go: up one dir, main page]

Skip to content
'git' is not recognized as an internal or external command while installing @sentry/node #16280
Closed
@gvillo

Description

@gvillo

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/node@9.18.0

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0