2014-04-06 14 views
0

我試圖幫助另一位開發人員在他們的Windows機器上運行npm install,但他們在package.json中獲得了一個訪問被拒絕的私人項目依賴關係錯誤。克隆人來自的項目位於同一個域中,並且位於Stash中的同一個項目中。npm在ssh git repo上安裝訪問被拒絕的錯誤-windows7

1222 silly lockFile 836362be-che-generator-cuff-0-0-1-package tar://C:\Users\knzn\AppData\Roaming\npm-cache\generator-cuff\0.0.1\package 
1223 silly lockFile 836362be-che-generator-cuff-0-0-1-package tar://C:\Users\knzn\AppData\Roaming\npm-cache\generator-cuff\0.0.1\package 
1224 silly lockFile 47037b47-generator-cuff-0-0-1-package-tgz tar://C:\Users\knzn\AppData\Roaming\npm-cache\generator-cuff\0.0.1\package.tgz 
1225 silly lockFile 47037b47-generator-cuff-0-0-1-package-tgz tar://C:\Users\knzn\AppData\Roaming\npm-cache\generator-cuff\0.0.1\package.tgz 
1226 verbose chmod C:\Users\knzn\AppData\Roaming\npm-cache\generator-cuff\0.0.1\package.tgz 644 
1227 silly chown skipping for windows C:\Users\knzn\AppData\Roaming\npm-cache\generator-cuff\0.0.1\package.tgz 
1228 silly lockFile 9e23d6fc-net-7999-chui-generator-cuff-git ssh://[email protected]:port/project/generator-cuff.git 
1229 silly lockFile 9e23d6fc-net-7999-chui-generator-cuff-git ssh://[email protected]:port/project/generator-cuff.git 
1230 error git fetch -a origin (ssh://[email protected]:port/project/grunt-cuff.git) Permission denied (publickey). 
1230 error git fetch -a origin (ssh://[email protected]:port/project/grunt-cuff.git) fatal: Could not read from remote repository. 
1230 error git fetch -a origin (ssh://[email protected]:port/project/grunt-cuff.git) 
1230 error git fetch -a origin (ssh://[email protected]:port/project/grunt-cuff.git) Please make sure you have the correct access rights 
1230 error git fetch -a origin (ssh://[email protected]:port/project/grunt-cuff.git) and the repository exists. 
1231 silly lockFile 16f0d96e-ter-net-7999-chui-grunt-cuff-git ssh://[email protected]:port/project/grunt-cuff.git 
1232 silly lockFile 16f0d96e-ter-net-7999-chui-grunt-cuff-git ssh://[email protected]:port/project/grunt-cuff.git 
1233 error Error: Command failed: Permission denied (publickey). 
1233 error fatal: Could not read from remote repository. 
1233 error 
1233 error Please make sure you have the correct access rights 
1233 error and the repository exists. 
1233 error 
1233 error  at ChildProcess.exithandler (child_process.js:637:15) 
1233 error  at ChildProcess.EventEmitter.emit (events.js:98:17) 
1233 error  at maybeClose (child_process.js:743:16) 
1233 error  at Socket.<anonymous> (child_process.js:956:11) 
1233 error  at Socket.EventEmitter.emit (events.js:95:17) 
1233 error  at Pipe.close (net.js:465:12) 
1234 error If you need help, you may report this *entire* log, 
1234 error including the npm and node versions, at: 
1234 error  <http://github.com/npm/npm/issues> 
1235 error System Windows_NT 6.1.7601 
1236 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--verbose" 
1237 error cwd C:\Users\knzn\workspace\my-project.net\repo\project 
1238 error node -v v0.10.26 
1239 error npm -v 1.4.3 
1240 error code 128 

我在OSX上,沒有問題。由於其他開發者是遙遠的,我決定在我們工作的新的Windows7-64bit筆記本電腦上測試自己,看看我是否可以重現和解決問題。我們使用隱藏,這是一個私人回購,我可以成功克隆自己。

> git clone ssh://[email protected]:port/project/generator-cuff.git 
Cloning into 'generator-cuff'... 
Enter passphrase for key '/c/Users/knzn/.ssh/id_rsa': 
remote: Counting objects: 86, done. 
remote: Compressing objects: 100% (81/81), done. 
remote: Total 86 (delta 29), reused 0 (delta 0) 
Receiving objects: 100% (86/86), 56.00 KiB | 35.00 KiB/s, done. 
Resolving deltas: 100% (29/29), done. 
Checking connectivity... done. 

有什麼想法?

我使用上述日誌

在此先感謝

> ssh -v 
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004 

> git --version 
git version 1.9.0.msysgit.0 

NPM信息。

編輯:其他開發人員能夠通過生成新的SSH密鑰沒有一個密碼來解決這個問題,但這是違背了Atlassian的本身提供了創建SSH密鑰的指示,所以也許這會導致本身那麼更多的是存儲問題。

https://confluence.atlassian.com/display/STASH/Creating+SSH+keys#CreatingSSHkeys-CreatinganSSHkeyonWindows

+0

任何機會,你都可以顯示你的'package.json'來展示你如何引用隱藏模式下的包(顯然掩蓋主機等)。 –

回答

0

Atlassian的證實,該解決方案確實是創造沒有密碼在Windows SSH密鑰。 NPM似乎可能更多的是這個問題。