Giter VIP home page Giter VIP logo

Comments (8)

shama avatar shama commented on June 14, 2024

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.

kud avatar kud commented on June 14, 2024

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

Maybe should be mentioned in the readme?

from napa.

jsdevel avatar jsdevel commented on June 14, 2024

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.

tomek-he-him avatar tomek-he-him commented on June 14, 2024

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.

scobo avatar scobo commented on June 14, 2024

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.

caseyWebb avatar caseyWebb commented on June 14, 2024

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.

caseyWebb avatar caseyWebb commented on June 14, 2024

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

from napa.

shama avatar shama commented on June 14, 2024

Good point, thanks @caseyWebb!

from napa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.