Closed kud closed 8 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.
It's exactly what I've done ;) Added a package.json
:D
Maybe should be mentioned in the readme?
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
.
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.
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"
}
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.
This is even more relevant w/ new npm private modules.
Good point, thanks @caseyWebb!
I don't find any solution to download a private repo with napa.