Re: [nodejs] Permission denied for git dependencies in package.json

2013-07-08 Thread Maxim Yefremov
Thanx Luke, I changed permissions for node.js apps folder (*sudo chown -R ` whoami` ~/pathToAll/node/apps*) and now can run npm install without sudo and git ssh dependencies works in package.json On Mon, Jul 8, 2013 at 9:43 AM, Luke Arduini luke.ardu...@gmail.com wrote: This isn't true in the

[nodejs] Permission denied for git dependencies in package.json

2013-07-07 Thread Maxim Yefremov
I try setup git dependencies in package.json: dependencies: { myLib: git+ssh://g...@domain.com:user/myLib.git } When I do sudo npm install I got errors: Warning: Permanently added the RSA host key for IP address 'myIp' to the list of known hosts. Permission denied (publickey).

Re: [nodejs] Permission denied for git dependencies in package.json

2013-07-07 Thread Luke Arduini
It's because you're running with sudo. You should see the same thing if you run your regular clone with sudo. Your options are to set up your key to work with sudo, or don't use it when cloning/installing (better option). This isn't an npm bug at all, fwiw. On Monday, July 8, 2013, Maxim

[nodejs] Permission denied for git dependencies in package.json

2013-07-07 Thread Luke Arduini
If you really want to do this with sudo then make sure your ssh-agent has the key before doing so, but without is better :) On Monday, July 8, 2013, Luke Arduini wrote: It's because you're running with sudo. You should see the same thing if you run your regular clone with sudo. Your options

Re: [nodejs] Permission denied for git dependencies in package.json

2013-07-07 Thread Maxim Yefremov
Thanx Luke, really when I do *sudo clone myRepo* I have the same error. But I cant do *npm install * without *sudo:* *npm ERR! Please try running this command again as root/Administrator. * How to check key of my ssh-agent? On Mon, Jul 8, 2013 at 9:29 AM, Luke Arduini luke.ardu...@gmail.com

Re: [nodejs] Permission denied for git dependencies in package.json

2013-07-07 Thread rubyonrai...@gmail.com
git repo doesn't recognise your local machine, two ways to make it 1) use ssh-keygen to generate key pair and put the public key into server's know_host 2) use https protocol instead of git+ssh -- rubyonrai...@gmail.com Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Monday, July

Re: [nodejs] Permission denied for git dependencies in package.json

2013-07-07 Thread Luke Arduini
On Monday, July 8, 2013, Maxim Yefremov wrote: Thanx Luke, really when I do *sudo clone myRepo* I have the same error. Yeah, you should see the error. But I cant do *npm install * without *sudo:* *npm ERR! Please try running this command again as root/Administrator. * How to check key

Re: [nodejs] Permission denied for git dependencies in package.json

2013-07-07 Thread Luke Arduini
This isn't true in the least. If he can clone without sudo then github is clearly acknowledging the key. Furthermore, .ssh/known_hosts is not used for the originating system's public key. You're thinking of the remote server's authorized_keys file. On Monday, July 8, 2013, rubyonrai...@gmail.com