Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

ERR!npm install component -g #7985

Closed
iralance opened this issue Apr 17, 2015 · 2 comments
Closed

ERR!npm install component -g #7985

iralance opened this issue Apr 17, 2015 · 2 comments

Comments

@iralance
Copy link

npm ERR! git -c core.longpaths=true clone C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-8c5e911d C:\soft\cygwin\tmp\npm-9544-0931ac76\git-cache-83dd3e776787\2246bd071392f5053a3a110024fd608a40a593ba
npm ERR! git clone C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-8c5e911d C:\soft\cygwin\tmp\npm-9544-0931ac76\git-cache-83dd3e776787\2246bd071392f5053a3a110024fd608a40a593ba: fatal: failed to open '/cygdrive/c/Users/iralance/AppData/Roaming/npm-cache/_git-remotes/git-github-com-timaschew-cogent-git-8c5e911d/C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-8c5e911d/objects': No such file or directory
npm ERR! git clone C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-8c5e911d C:\soft\cygwin\tmp\npm-9544-0931ac76\git-cache-83dd3e776787\2246bd071392f5053a3a110024fd608a40a593ba:
npm ERR! git -c core.longpaths=true clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:timaschew/cogent.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-efaba401
npm ERR! git clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:timaschew/cogent.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-efaba401: Cloning into bare repository 'C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-efaba401'...
npm ERR! git clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:timaschew/cogent.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-efaba401:
npm ERR! git clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:timaschew/cogent.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-efaba401: Host key verification failed.
npm ERR! git clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:timaschew/cogent.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-efaba401: fatal: The remote end hung up unexpectedly
npm ERR! git -c core.longpaths=true fetch -a origin
npm ERR! git fetch -a origin (git://github.com/ariya/esprima.git) fatal: read error: Connection reset by peer
npm ERR! git fetch -a origin (git://github.com/ariya/esprima.git) fatal: early EOF
npm ERR! git fetch -a origin (git://github.com/ariya/esprima.git) fatal: index-pack failed
npm ERR! git -c core.longpaths=true clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:ariya/esprima.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-ariya-esprima-git-6412a2a4
npm ERR! git clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:ariya/esprima.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-ariya-esprima-git-6412a2a4: Cloning into bare repository 'C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-ariya-esprima-git-6412a2a4'...
npm ERR! git clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:ariya/esprima.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-ariya-esprima-git-6412a2a4:
npm ERR! git clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:ariya/esprima.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-ariya-esprima-git-6412a2a4: Host key verification failed.
npm ERR! git clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:ariya/esprima.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-ariya-esprima-git-6412a2a4: fatal: The remote end hung up unexpectedly
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\soft\\nodejs\\node.exe" "C:\\soft\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "component" "-g"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code 128

npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:timaschew/cogent.git C:\Users\iralance\AppData\Roaming\npm-cache\_git-remotes\git-github-com-timaschew-cogent-git-efaba401
npm ERR! Host key verification failed.
npm ERR! fatal: The remote end hung up unexpectedly
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\code\slideout\npm-debug.log

anybody can give me help?

@smikes
Copy link
Contributor

smikes commented Apr 17, 2015

It looks like you are trying to use a git dependency to install a module from a private git repository, but when npm spawns git, git is unable to authenticate. I noticed the npm-debug.log you posted contains the lines

npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\iralance\AppData\Roaming\npm-cache_git-remotes_templates --mirror git@github.com:timaschew/cogent.git C:\Users\iralance\AppData\Roaming\npm-cache_git-remotes\git-github-com-timaschew-cogent-git-efaba401
npm ERR! Host key verification failed.

Can you try running the git command manually to see if it succeeds at the command prompt? And is there something that you normally need to do to let git authenticate (eg, ssh-add path/to/key-name)?

@ehsalazar
Copy link

We haven’t heard back and we’re trying to clean up some old issues.  If this is still a problem, can you please reply and let us know?  We’ll be happy to reopen if necessary.

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

No branches or pull requests

4 participants