shama / napa

:wine_glass: A helper for installing stuff without a package.json with npm.
MIT License
412 stars 34 forks source link

Can't download a private repo? #19

Closed kud closed 8 years ago

kud commented 10 years ago

I don't find any solution to download a private repo with napa.

shama commented 10 years ago

It appears that you cannot. Although I imagine if it is a private repo convincing the maintainer to add a package.json would be easy.

kud commented 10 years ago

It's exactly what I've done ;) Added a package.json :D

Maybe should be mentioned in the readme?

jsdevel commented 9 years ago

I'm somewhat confused by this issue. napa is using git, so as long as you have network access to the repo you'd like to provide, you should be fine. To me this is more of a configuration error than an issue with napa.

tomek-he-him commented 9 years ago

It does work with me as well. I access private repos over the git+ssh protocol. Haven't tried it with github private repos though.

scobo commented 9 years ago

Doesn’t appear to work with GitHub private repos. Target repo has a package.json.

Tried the following:

Would be ideal if Napa could use my SSH public key, same as NPM does. For example, this works without any additional configuration or new application-specific passwords:

"dependencies": {
  "repo": "git+ssh://git@github.com:username/repo.git"
}
caseyWebb commented 8 years ago

Personally, I think this should be closed as wontfix.

As invaluable as napa is, at the end of the day it is a workaround for unmaintained and non-compliant packages, and I don't think we should be encouraging workarounds considering I can't fathom a situation you would not be able to add a package.json to a private repo.

caseyWebb commented 8 years ago

This is even more relevant w/ new npm private modules.

shama commented 8 years ago

Good point, thanks @caseyWebb!