La installation npm de dependencies privadas no funciona, pero el clon no

Tengo 3 dependencies privadas en mi package. Json. Cuando ejecuto npm install, obtengo los errores. TENGA EN CUENTA QUE CUANDO CITO DEL MISMO ENTONCES CLONES SOLAMENTE LA INSTALACIÓN DEL NPM NO FUNCIONA

Cloning into bare repository Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 

El logging completo está presente a continuación.

Hay pocos problemas similares relacionados, pero ninguno de ellos proporciona una solución en mi escenario. Inicialmente pensé que eran problemas de la versión nodejs y npm, así que los actualicé ejecutando Windows nodejs.msi y actualmente la versión es como se muestra en la image. enter image description here

El contenido de mi package.json es el siguiente: (se elimina la mayor parte, solo se mencionan las dependencies privadas importantes)

  "dependencies": { "private-dep2": "git+ssh://git@github.comp.com:reph/private-dep2.git#v0.3.5" }, "devDependencies": { "ember-cli": "0.2.5", "ember-cli-app-version": "0.3.3", "tough-cookie": "^0.12.1", "private-dep3": "git+ssh://git@github.comp.com:reph/private-dep3.git#v0.3.5", "private-dep1": "git+ssh://git@github.comp.com:reph/private-dep1.git#v0.7.5" } 

Los loggings completos son los siguientes:

 PS C:\DDrive\Projects\p-ceck> npm cache clean PS C:\DDrive\Projects\p-ceck> PS C:\DDrive\Projects\p-ceck> PS C:\DDrive\Projects\p-ceck> bower cache clean PS C:\DDrive\Projects\p-ceck> PS C:\DDrive\Projects\p-ceck> PS C:\DDrive\Projects\p-ceck> PS C:\DDrive\Projects\p-ceck> npm install Enter passphrase for key '/c/Users/user_name/.ssh/id_rsa': Enter passphrase for key '/c/Users/user_name/.ssh/id_rsa': Enter passphrase for key|'/c/Users/user_name/.ssh/id_rsa': | /nter passphrase for key '/c/Users/user_name/.ssh/id_rsa': / -nter passphrase for key '/c/Users/user_name/.ssh/id_rsa': - /nter passphrase for key '/c/Users/user_name/.ssh/id_rsa': \ |nter passphrase for key '/c/Users/user_name/.ssh/id_rsa': - //ter passphrase for key '/c/Users/user_name/.ssh/id_rsa': / -nter passphrase for key '/c/Users/user_name/.ssh/id_rsa': - npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep3.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep3-git-bf7ad496: Cloning into bare repository 'C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep3-git-bf7ad496'... npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep3.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep3-git-bf7ad496: Permission denied (publickey). npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep3.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep3-git-bf7ad496: fatal: Could not read from remote repository. npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep3.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep3-git-bf7ad496: npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep3.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep3-git-bf7ad496: Please make sure you have the correct access rights npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep3.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep3-git-bf7ad496: and the repository exists. / npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep1.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep1-git-82b6a6b3: Cloning into bare repository 'C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep1-git-82b6a6b3'... npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep1.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep1-git-82b6a6b3: Permission denied (publickey). npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep1.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep1-git-82b6a6b3: fatal: Could not read from remote repository. npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep1.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep1-git-82b6a6b3: npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep1.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep1-git-82b6a6b3: Please make sure you have the correct access rights npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep1.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep1-git-82b6a6b3: and the repository exists. / npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep2.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep2-git-426ffed6: Cloning into bare repository 'C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep2-git-426ffed6'... npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep2.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep2-git-426ffed6: Permission denied (publickey). npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep2.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep2-git-426ffed6: fatal: Could not read from remote repository. npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep2.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep2-git-426ffed6: npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep2.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep2-git-426ffed6: Please make sure you have the correct access rights npm ERR! git clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep2.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep2-git-426ffed6: and the repository exists. npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code 128 npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror ssh://git@github.comp.com/reph/private-dep3.git C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep3-git-bf7ad496 npm ERR! Cloning into bare repository 'C:\Users\user_name\AppData\Roaming\npm-cache\_git-remotes\ssh-git-github-comp-com-reph-private-dep3-git-bf7ad496'... 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! 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:\DDrive\Projects\p-ceck\npm-debug.log 

Tuve un problema similar. Terminé configurando las teclas ssh para mi máquina y npm pudo instalarse sin problemas.

Cómo configurar las keys ssh para github.com

Para cualquiera que ya tenga una key SSH configurada con Github, la solución para mí fue probar mi count Github SSH ingresando ssh -T git@github.com en mi terminal. Eso me impulsó a utilizar mi frase de contraseña, que ingresé y ahora NPM está trabajando nuevamente. Si olvidó su frase de contraseña SSH, puede recuperarla en la herramienta de Acceso a Llaveros buscando ssh .