npm install of private dependencies does not work but clone does - node.js

I have 3 private dependencies in my package.json. When i run npm install i get the errors. PLEASE NOTE THAT WHEN I DO CLONE OF THE SAME THEN IT CLONES ONLY NPM INSTALL DOES NOT WORK
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.
The entire log is present below.
There are few similar issues related but none of them provide a solution in my scenario. Initially i thought it was nodejs and npm version issues so i updated them by running windows nodejs.msi and currently the version is as shown in the image.
The contents of my package.json is as below: (most of it is removed, just the important private dependencies are mentioned)
"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"
}
The entire logs is as below:
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

I had a similar problem. I ended up setting up ssh keys for my machine and npm was able to install with no problems.
How to set up ssh keys for github.com

For anyone that already has an SSH key set up with Github, the solution for me was to test my Github SSH account by entering ssh -T git#github.com into my terminal. That prompted me for my passphrase, which I entered and now NPM is working again. If you forgot your SSH passphrase, you may be able to recover it in the Keychain Access tool by searching for ssh.

Related

Angular cli installation yields ssh error

Installing the angular cli with:
npm -g install angular/cli
Yields this error with node 8.6:
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git#github.com/angular/cli.git
npm ERR!
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! /Users/user/.npm/_logs/2017-10-10T16_41_49_141Z-debug.log
Changing to node version 6.11.4 yeilds similar errors:
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: Cloning into bare repository '/Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032'...
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: Warning: Permanently added the RSA host key for IP address '64:ff9b::c01e:fd71' to the list of known hosts.
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: Permission denied (publickey).
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: fatal: Could not read from remote repository.
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032:
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: Please make sure you have the correct access rights
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: and the repository exists.
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.11.4/bin/node" "/Users/user/.nvm/versions/node/v6.11.4/bin/npm" "install" "-g" "angular/cli"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! code 128
npm ERR! Command failed: git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032
npm ERR! Cloning into bare repository '/Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032'...
npm ERR! Warning: Permanently added the RSA host key for IP address '64:ff9b::c01e:fd71' 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!
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! /Users/user/npm-debug.log
This is happening with both my Ubuntu remote server and my local MacBook, both of which have valid SSH keys added to my Github account.
It should be #angular/cli since angular/cli is a non existing npm-package:
npm -g install #angular/cli
the right command is :
npm install -g #angular/cli
you can check this to can start your app :
https://angular.io/guide/quickstart

TESTRPC install ERR from npm Node.js

I am pretty new to node.js and this is my first install using npm. I got a lot of ERR Lines which I am not sure whats going wrong with it.
I was trying to install TESTRPC in my OS X. just installed node js and using command
npm install -g ethereumjs-testrpc
but i got ERROR message
npm ERR! git clone --template=/Users/dion/.npm/_git-remotes/_templates
--mirror https://github.com/debris/bignumber.js.git
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js-
git-master-df3f1ce1: Cloning into bare repository
'/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-
js-git-master-df3f1ce1'...
npm ERR! git clone --template=/Users/dion/.npm/_git-remotes/_templates
--mirror https://github.com/debris/bignumber.js.git
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js-
git-master-df3f1ce1: remote: Repository not found.
npm ERR! git clone --template=/Users/dion/.npm/_git-remotes/_templates
--mirror https://github.com/debris/bignumber.js.git
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js-
git-master-df3f1ce1: fatal: repository
'https://github.com/debris/bignumber.js.git/' not found
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"
"ethereumjs-testrpc"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code 128
npm ERR! Command failed: git clone --template=/Users/dion/.npm/_git-
remotes/_templates --mirror https://github.com/debris/bignumber.js.git
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js-
git-master-df3f1ce1
npm ERR! Cloning into bare repository '/Users/dion/.npm/_git-
remotes/git-https-github-com-debris-bignumber-js-git-master-
df3f1ce1'...
npm ERR! remote: Repository not found.
npm ERR! fatal: repository
'https://github.com/debris/bignumber.js.git/' not found
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! /Users/dion/npm-debug.log
The problem is coming from one of the dependencies testRPC is using.
To be more precise Bignumber.js i think what happened is the developers added it by cloning the ssh link instead of https probably it's a forked version that's why.
Either it got solved now probably by the developers on their own so you just install it and it's perfect.
Or you use an older version that doesn't have this problem.
Or you manually clone the project change package.json and refrence bignumber.js by it's https link removing the .git in the end then run npm install

Error installing angular-cli using node v4.6.0 npm 3.10.8 on windows 8

I am getting below errors in log file and don't know how to resolve.
Could someone help please ? Thanks in advance.
Registry url: https://registry.npmjs.org/
Current Time: 10/09/2016 10:34:35
Last Refreshed: 10/09/2016 10:05:59
Number of Results: 363330
====Executing command 'npm install angular-cli -g '====
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:213:12)
npm WARN addRemoteGit at emitTwo (events.js:87:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:172:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:829:16)
npm WARN addRemoteGit at Socket.<anonymous>
(internal/child_process.js:319:11)
npm WARN addRemoteGit at emitOne (events.js:77:13)
npm WARN addRemoteGit at Socket.emit (events.js:169:7)
npm WARN addRemoteGit at Pipe._onclose (net.js:486:12)
npm WARN addRemoteGit webpack/compression-webpack-
plugin#7e55907cd54a2e91b96d25a660acc6a2a6453f54 resetting remote
C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-ec76b2fe because of error: { [Error: Command failed: git -c core.longpaths=true config --
get remote.origin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: 'git -c core.longpaths=true config --get
remote.origin.url' }
npm ERR! git clone --template=C:\Users\Ali\AppData\Roaming\npm-cache\_git-
remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin.git C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: Cloning into bare repository 'C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5'...
npm ERR! git clone --template=C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin.git C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
npm ERR! git clone --template=C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin.git C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: Permission denied (publickey).
npm ERR! git clone --template=C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin.git C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: fatal: Could not read from remote repository.
npm ERR! git clone --template=C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin.git C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5:
npm ERR! git clone --template=C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin.git C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: Please make sure you have the correct access rights
npm ERR! git clone --template=C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin.git C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: and the repository exists.
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Ali\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "angular-cli" "-g"
npm ERR! node v4.6.0
npm ERR! npm v3.10.8
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin.git C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5
npm ERR! Cloning into bare repository 'C:\Users\Ali\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5'...
npm ERR! Warning: Permanently added the RSA host key for IP address '192.30.253.113' 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!
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! F:\Project_TypeScript\A2Vs\NodeA2\NodeA2\npm-debug.log
====npm command completed with exit code 1====
Did you run command-line as administrator?

AWS Elastic Beanstalk , cannot install node.js private module hosted on bitbucket

I'm trying to deploy a node.js application to Elastic Beanstalk.
In my main package.json I have a private module hosted on Bitbucket.
"dependencies": {
"my-module": "git+https://<API-KEY>:x-oauth-basic#bitbucket.org/<team>/my-module.git"}
You can see this case as reference : NPM private git module on Heroku
Once I do my : eb deploy
My npm installation fails marking the following error :
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git#bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org- <team>-my-module-git-ac810b24
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git#bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: Cloning into bare repository '/root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24'...
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git#bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: Permission denied (publickey).
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git#bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: fatal: Could not read from remote repository.
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git#bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24:
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git#bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: Please make sure you have the correct access rights
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git#bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: and the repository exists.
npm ERR! Linux 3.14.35-28.38.amzn1.x86_64
npm ERR! argv "/opt/elasticbeanstalk/node-install/node-v0.12.2-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v0.12.2-linux-x64/bin/npm" "--production" "install"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code 128
npm ERR! Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git#bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24
npm ERR! Cloning into bare repository '/root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24'...
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! /tmp/deployment/application/npm-debug.log
I don't get why is failing.
You're getting the error Permission denied (publickey). from bitbucket. The Elasticbeanstalk part is fine, it just doesn't have permission to download your private repo. You'll have to get your public key into Bitbucket or use HTTP auth.

GoodData Visualization SDK Initial Setup

I followed the steps listed here http://sdk.gooddata.com/gooddata-js/getting-started/ to start setting up the local dev environment. However, I ran into this error when running the npm install command. Looks like I do not have access to copy the clone.
Here is more detail about the error:
new-host-2:gooddata-js zohebmunshi$ sudo npm install
Password:
Sorry, try again.
Password:
npm WARN package.json gooddata#0.0.13 No repository field.
The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
-|e you sure you want to continue connecting (yes/no)? \
-/ease type 'yes' or 'no': \
npm ERR! git clone git#github.com:gooddata/grunt-grizzly Cloning into bare repository '/Users/zohebmunshi/.npm/_git-remotes/git-github-com-gooddata-grunt-grizzly-41562694'...
npm ERR! git clone git#github.com:gooddata/grunt-grizzly Warning: Permanently added 'github.com,192.30.252.129' (RSA) to the list of known hosts.
npm ERR! git clone git#github.com:gooddata/grunt-grizzly Permission denied (publickey).
npm ERR! git clone git#github.com:gooddata/grunt-grizzly fatal: Could not read from remote repository.
npm ERR! git clone git#github.com:gooddata/grunt-grizzly
npm ERR! git clone git#github.com:gooddata/grunt-grizzly Please make sure you have the correct access rights
npm ERR! git clone git#github.com:gooddata/grunt-grizzly and the repository exists.
npm ERR! Error: Command failed: Cloning into bare repository '/Users/zohebmunshi/.npm/_git-remotes/git-github-com-gooddata-grunt-grizzly-41562694'...
npm ERR! Warning: Permanently added 'github.com,192.30.252.129' (RSA) 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! at ChildProcess.exithandler (child_process.js:648:15)
npm ERR! at ChildProcess.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:756:16)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:823:5)
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/npm/npm/issues>
npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/zohebmunshi/gooddata-js
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code 128
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/zohebmunshi/gooddata-js/npm-debug.log
npm ERR! not ok code 0
I found this solution: It needs to be executed from command line.
root#edos-dp-dev-20 /var/www/phabricator # ./bin/repository pull M
Pulling 'M'...
Enter passphrase for key '/tmp/b40shoorty8kw4os/passphrase-ssh-key':
#'s password:
Done.
root#edos-dp-dev-20 /var/www/phabricator #
Note: Where M is Callsign of repository
Additional information are here: https://secure.phabricator.com/T4620

Resources