Git Product home page Git Product logo

npm install: Error while executing: /usr/bin/git ls-remote -h -t ssh://[email protected]/ngokevin/ziploader.git npm ERR! [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. npm ERR! Please make sure you have the correct access rights and the repository exists. about moonrider HOT 3 CLOSED

fliodhais avatar fliodhais commented on May 26, 2024
npm install: Error while executing: /usr/bin/git ls-remote -h -t ssh://[email protected]/ngokevin/ziploader.git npm ERR! [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. npm ERR! Please make sure you have the correct access rights and the repository exists.

from moonrider.

Comments (3)

frabul avatar frabul commented on May 26, 2024

I had the same problem.
For me the issue was the fact that npm tries to access github trough ssh and tries to use the default key file, if the file has a password the process fails.
So at the end of the day you should set your default key without password.
To confirm that try to execute this command manually
/usr/bin/git ls-remote -h -t ssh://[email protected]/ngokevin/ziploader.git

if it asks for a password or gives an error then you should solve that.

from moonrider.

fliodhais avatar fliodhais commented on May 26, 2024

I had the same problem. For me the issue was the fact that npm tries to access github trough ssh and tries to use the default key file, if the file has a password the process fails. So at the end of the day you should set your default key without password. To confirm that try to execute this command manually /usr/bin/git ls-remote -h -t ssh://[email protected]/ngokevin/ziploader.git

if it asks for a password or gives an error then you should solve that.

Thanks for the suggestion but it doesn't seem to solve the issue. As @dmarcos suggested in discord, "add your public key to github?" worked. https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

from moonrider.

miva2 avatar miva2 commented on May 26, 2024

Thanks frabul and fliodhais!
I had to follow both steps. Adding SSH key generated on this device to github account then followed by the manual command to ziploader.

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (...) to the list of known hosts.

Accepting this solved this issue.

from moonrider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.