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

Flow SSH context to NPM install command #11

Open
howarddierking opened this issue Oct 28, 2014 · 1 comment
Open

Flow SSH context to NPM install command #11

howarddierking opened this issue Oct 28, 2014 · 1 comment

Comments

@howarddierking
Copy link

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:

{
  ...
  "dependencies": {
    "request": "^2.45.0",
    "underscore": "^1.7.0",
    "my-utils": "git+ssh://[email protected]:my/node-utils.git#dev"
  },
  ...
}
Everything starts working as expected, until npm tries to resolve the git-based dependency. Then I get the following error.

npm ERR! git clone [email protected]:my/node-utils.git Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-my-node-utils-git-3fdbd8e2'...
npm ERR! git clone [email protected]:my/node-utils.git Host key verification failed.
npm ERR! git clone [email protected]:my/node-utils.git fatal: Could not read from remote repository.
npm ERR! git clone [email protected]:my/node-utils.git 
npm ERR! git clone [email protected]:my/node-utils.git Please make sure you have the correct access rights
npm ERR! git clone [email protected]:my/node-utils.git and the repository exists.
npm ERR! Error: Command failed: Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-my-node-utils-git-3fdbd8e2'...
npm ERR! Host key verification failed.
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!     at ChildProcess.exithandler (child_process.js:637:15)
npm ERR!     at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:743:16)
npm ERR!     at Socket.<anonymous> (child_process.js:956:11)
npm ERR!     at Socket.EventEmitter.emit (events.js:95:17)
npm ERR!     at Pipe.close (net.js:466:12)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

I had tried registering the public key from the project configuration on github, but it didn't have any effect on the error. I haven't yet tried putting in the details from my existing keys to those fields, but don't see how that would help given what I've observed thus far. 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.

thanks,

_howard

@ghost
Copy link

ghost commented Aug 17, 2015

I've got this problem also, so I'd be into the same feature.

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