Skip to content
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

npm install ...@types/node opens git but cant connect #4391

Open
evrality opened this issue May 7, 2024 · 1 comment
Open

npm install ...@types/node opens git but cant connect #4391

evrality opened this issue May 7, 2024 · 1 comment
Labels
needs more info issues that need more info from the author npm

Comments

@evrality
Copy link

evrality commented May 7, 2024

Details

exatcly what it says in the title. i try to execute npm install typescript@types/node or npm install -D typescript@types/node it opens git that prompts me to connect to github, if i click with browser it throws me onto 127.0.0.1, which refuses to connect.
the other option is with a code. everything works but doesn't connect and gives this error

npm info using npm@10.5.0
npm info using node@v20.12.2
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/types/node.git
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

Node.js version

20.12.2

Example code

npm install typescript@types/node

Operating system

Microsoft Windows [Version 10.0.19045.4291]

Scope

npm install

Module and version

Not applicable.

@RedYetiDev
Copy link
Member

Is your git setup correctly? Try running git --no-replace-objects ls-remote ssh://git@github.com/types/node.git.

If not, this is a git issue (probably, as the error says: git@github.com: Permission denied (publickey))

@RedYetiDev RedYetiDev added needs more info issues that need more info from the author npm labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info issues that need more info from the author npm
Projects
None yet
Development

No branches or pull requests

2 participants