【发布时间】:2018-09-19 03:47:00
【问题描述】:
我已经为 mac book 设置了 ssh 密钥,并且同样也更新到了 bitbucket。但是当我尝试执行 npm install 时,它会显示"Please make sure you have the correct access rights..."
我尝试使用 windows 设置 ssh 密钥,它工作正常。此问题仅在 Mac Book 中出现。
任何人有任何关于它的指针将不胜感激。
我的错误日志是:
npm ERR! git clone --template=/Users/sunbansa0/.npm/_git-remotes/_templates --mirror ssh://git@us.tools.publicis.sapient.com/ccap/rcp-frontend.git /Users/sunbansa0/.npm/_git-remotes/git-ssh-git-us-tools-publicis-sapient-com-ccap-rcp-frontend-git-431fc206: ssh_exchange_identification: read: Connection reset by peer
npm ERR! git clone --template=/Users/sunbansa0/.npm/_git-remotes/_templates --mirror ssh://git@us.tools.publicis.sapient.com/ccap/rcp-frontend.git /Users/sunbansa0/.npm/_git-remotes/git-ssh-git-us-tools-publicis-sapient-com-ccap-rcp-frontend-git-431fc206: fatal: Could not read from remote repository.
npm ERR! git clone --template=/Users/sunbansa0/.npm/_git-remotes/_templates --mirror ssh://git@us.tools.publicis.sapient.com/ccap/rcp-frontend.git /Users/sunbansa0/.npm/_git-remotes/git-ssh-git-us-tools-publicis-sapient-com-ccap-rcp-frontend-git-431fc206:
npm ERR! git clone --template=/Users/sunbansa0/.npm/_git-remotes/_templates --mirror ssh://git@us.tools.publicis.sapient.com/ccap/rcp-frontend.git /Users/sunbansa0/.npm/_git-remotes/git-ssh-git-us-tools-publicis-sapient-com-ccap-rcp-frontend-git-431fc206: Please make sure you have the correct access rights
npm ERR! git clone --template=/Users/sunbansa0/.npm/_git-remotes/_templates --mirror ssh://git@us.tools.publicis.sapient.com/ccap/rcp-frontend.git /Users/sunbansa0/.npm/_git-remotes/git-ssh-git-us-tools-publicis-sapient-com-ccap-rcp-frontend-git-431fc206: and the repository exists.
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code 128
npm ERR! Command failed: git clone --template=/Users/sunbansa0/.npm/_git-remotes/_templates --mirror ssh://git@us.tools.publicis.sapient.com/ccap/rcp-frontend.git /Users/sunbansa0/.npm/_git-remotes/git-ssh-git-us-tools-publicis-sapient-com-ccap-rcp-frontend-git-431fc206
npm ERR! Cloning into bare repository '/Users/sunbansa0/.npm
【问题讨论】:
标签: git npm bitbucket npm-install