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 ci tries to access github.com/easbar/Leaflet.Heightgraph via ssh #85

Closed
karussell opened this issue May 21, 2021 · 0 comments
Closed

Comments

@karussell
Copy link
Member

karussell commented May 21, 2021

This only appeared on travis.

Just for my own reverence as I was fighting with this now for a few hours: npm/cli#2610 (the problem is likely that on travis npm 6 is installed and locally I have npm 7.12.1?)

$ npm ci 

npm ERR! Error while executing:

npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/easbar/Leaflet.Heightgraph.git

npm ERR! 

npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.113.3' to the list of known hosts.

npm ERR! 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.

npm ERR! 

npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:

npm ERR!     /home/travis/.npm/_logs/2021-05-21T09_01_43_806Z-debug.log

The command "eval npm ci  " failed. Retrying, 2 of 3.

Editing the package-lock.json manually fixed it for me (or creating it with npm v6 should fix it too, but did not try it). Another way is removing all occurances of heightgraph in package-lock.json and then adding this strange notation (https://any_user in the URL) and running npm install:

"leaflet.heightgraph": "git+https://easbar@github.com/easbar/Leaflet.Heightgraph.git#82cff7b3013dd73d7221521c5b404ded6439e050",

Also there was this issue npm/cli#558 after I freshly recreated the package-lock.json here: bfe99ec so I guess I should not do that :/

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

No branches or pull requests

1 participant