Comments (8)
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.
from napa.
It's exactly what I've done ;) Added a package.json
:D
Maybe should be mentioned in the readme?
from napa.
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
.
from 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.
from napa.
Doesn’t appear to work with GitHub private repos. Target repo has a package.json
.
Tried the following:
- username/repo // silently fails (no errors but module does not appear in node_modules/)
- git+ssh://[email protected]/repo // silently fails
- git+ssh://github.com/username/repo.git // ERR! Permission denied (publickey).
- git+https://github.com/username/repo.git // Halts installation to prompt for authentication. Works, but I had to generate a new application-specific password for Napa.
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://[email protected]:username/repo.git"
}
from napa.
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.
from napa.
This is even more relevant w/ new npm private modules.
from napa.
Good point, thanks @caseyWebb!
from napa.
Related Issues (20)
- some question, about how to use it. I just want to know where this package used to? HOT 3
- Can't download jQuery HOT 2
- --save flag HOT 1
- Download a single js file and give it a location HOT 1
- Custom install folder HOT 2
- Trouble installing a dependency that uses napa HOT 7
- Peer dependencies HOT 3
- can't napa be run on npm postInstall hook? HOT 1
- download a single JS file HOT 1
- Flat (stripped folders) of ZIPs / Update download to 5 HOT 1
- Yarn integration: Is it possible? HOT 2
- napa not working ubuntu HOT 3
- Default version for generated package.json is always '0.0.0' HOT 1
- Nested napa dependencies not resolving correctly
- Packages installed with napa removed after install other package HOT 5
- Corrupt cache HOT 1
- zip folder structure lost
- r HOT 1
- Downloading a jar unpacks it
- RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from napa.