Skip to content

Unable to install version 26: Command failed with exit code 128 #9033

Open
@lvzhenbo

Description

@lvzhenbo
Command failed with exit code 128: git -c core.longpaths=true fetch --depth 1 origin 06b29aafb7708acef8b3669835c8a7857ebc92d2
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This error happened while installing the dependencies of electron-builder@26.0.12
 at app-builder-lib@26.0.12
 at @electron/rebuild@3.7.0

pnpm: Command failed with exit code 128: git -c core.longpaths=true fetch --depth 1 origin 06b29aafb7708acef8b3669835c8a7857ebc92d2
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
    at makeError (C:\Users\htk\AppData\Local\node\corepack\v1\pnpm\10.7.0\dist\pnpm.cjs:14530:17)
    at handlePromise (C:\Users\htk\AppData\Local\node\corepack\v1\pnpm\10.7.0\dist\pnpm.cjs:15101:33)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async execGit (C:\Users\htk\AppData\Local\node\corepack\v1\pnpm\10.7.0\dist\pnpm.cjs:112171:7)
    at async gitFetcher (C:\Users\htk\AppData\Local\node\corepack\v1\pnpm\10.7.0\dist\pnpm.cjs:112124:11)
    at async fetcher (C:\Users\htk\AppData\Local\node\corepack\v1\pnpm\10.7.0\dist\pnpm.cjs:119439:16)
    at async run (C:\Users\htk\AppData\Local\node\corepack\v1\pnpm\10.7.0\dist\pnpm.cjs:118889:23)
Progress: resolved 763, reused 697, downloaded 0, added 0

I probably know what's happening, but I don't know how to fix it without changing the network environment, version 26 introduces this change causing the dependency to depend on the github server, and without connecting to the github server the dependency can't be installed, can you change the way back to version 25

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