-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Cannot clone git repository when used as package.json dependency #621
Comments
Our use of SSH keys is somewhat sandboxed; so the npm install won't have
|
hmm - any way to work around this? plugin? |
there's a per-project setting to pass the SSH keys in as ENV variables, On Mon, Oct 27, 2014 at 5:26 PM, Howard Dierking [email protected]
|
@howarddierking under the branch config tab, there are two fields for public and private ssh keys, those are the ones that you'd need to populate. |
hmm - I had tried registering the public key on github, but it didn't have any effect. I could also try putting in the details from my existing keys to those fields. Ideally, I would like to have the node plugin be aware of the SSH context used to clone the original project repo. This is especially helpful given the pain involved with setting up a private NPM registry. |
@howarddierking I recommend starting an issue on strider-node as a feature request. |
done - closing this issue. Strider-CD/strider-node#11 |
@howarddierking I am also facing the same error with NPM , did you able to figure out ? |
Yes, the problem, IIRC, was related to key reuse on GitHub. We ended up using myget.org for private package hosting - has proven to be a reliable solution. |
Adding Public SSH Key to my GitHub account and installing the package via NPM through git Bash Worked for me !! Try this if works do let me know !! |
Hi - In my Node project, I'm referencing another project (internally via it's github repository URL). My package.json file looks similar to the following:
Everything starts working as expected, until npm tries to resolve the git-based dependency. Then I get the following error.
Is there something I need to do on my end to make this work? My assumption was that the same ssh key used to clone the project repo would be used to resolve the npm dependency, but that doesn't seem to be the case here.
thanks,
_howard
The text was updated successfully, but these errors were encountered: