Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for private / non-npm dependencies #7

Closed
gka opened this issue Nov 16, 2015 · 21 comments
Closed

Missing support for private / non-npm dependencies #7

gka opened this issue Nov 16, 2015 · 21 comments

Comments

@gka
Copy link

gka commented Nov 16, 2015

ied fails when I try to install private dependencies

$ ied install
/usr/local/lib/node_modules/ied/lib/install_cmd.js:63
        if (err) throw err
                       ^ 
Error: Unexpected status code 404 for http://registry.npmjs.org/my-private-repo
    at ClientRequest.<anonymous> (/usr/local/lib/node_modules/ied/lib/resolve.js:37:17)
    at ClientRequest.g (events.js:199:16)
    at ClientRequest.emit (events.js:107:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:426:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:111:23)
    at Socket.socketOnData (_http_client.js:317:20)
    at Socket.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at Socket.Readable.push (_stream_readable.js:126:10)
    at TCP.onread (net.js:538:20)

If I run npm install everything works fine. The expected behavior is that ied uses my ssh keys to load the private repos from github. see using git urls as dependencies

@gka gka changed the title Missing support for private or non-npm dependencies Missing support for private / non-npm dependencies Nov 16, 2015
@JohnyDays
Copy link

Also run into this, I use a mix of in-house and public packages, and this is currently blocking for me to change 😭

@frnk94
Copy link

frnk94 commented Nov 16, 2015

+1 support for private repo would be great

@Santinell
Copy link

+1 for git dependencies. Sometimes is needed using forks, like here:
"passport-bitbucket-oauth2": "git+https://github.com/Santinell/passport-bitbucket-oauth2.git"

@alexanderGugel
Copy link
Owner

The current roadmap is something like that:

  • support for public scoped modules
  • support for private scoped modules
  • support for installing arbitrary tarballs
  • support for git repos

git repos come last, because GitHub at least already gives you tarballs anyways, which you can use in order to work around that feature (but it still means we need it).

@alexanderGugel
Copy link
Owner

As in ec1cdb4, scoped public packages are now supported. Tested with @zeke/pubbles.

Private npm modules aren't supported yet due to the missing authentication logic that still needs to be added. I expect private packages to be implemented by Thursday or Friday this week.

Stay tuned everyone, we're getting there!

@avetisk
Copy link

avetisk commented Nov 23, 2015

Any update on this?

@timoxley
Copy link

git repos come last, because GitHub at least already gives you tarballs anyways

note that git repos are far more popular than any of the other options, perhaps they should go first.

@alexanderGugel
Copy link
Owner

@avetisk No update yet, sorry for the delayed reply. I hope I'm gonna have some time this weekend to finish this.

@terinjokes
Copy link

@alexanderGugel "GitHub at least already gives you tarballs anyways" except I can't control the dependencies of dependencies.

@tipiirai
Copy link

tipiirai commented Feb 5, 2016

Just ran my first ied install. great experience. Fast indeed. Thank you for the tool.

I'm also in a need for private repositories.

@gajus
Copy link

gajus commented Mar 8, 2016

@alexanderGugel

Private npm modules aren't supported yet due to the missing authentication logic that still needs to be added. I expect private packages to be implemented by Thursday or Friday this week.

Stay tuned everyone, we're getting there!

Has this been done?

@gajus
Copy link

gajus commented Mar 11, 2016

Until this is solved, is it possible to use ied to install all public dependencies and npm for private?

@duncanfinney
Copy link

@gajus, Thought about doing that too. Didn't seem to work quite right for us with webpack.

@mateodelnorte
Copy link

👍 on github dependencies. 4 of the last places I work, included where I currently work, use github and tags as a form of private npm.

@paradite
Copy link

paradite commented Apr 6, 2016

I hope it has support for github or git repos soon!

@cellvia
Copy link

cellvia commented Apr 8, 2016

+1

@benmonro
Copy link

+1, no private repos is a show stopper for us.

@alexanderGugel
Copy link
Owner

alexanderGugel commented Jul 26, 2016

Closing for now, since you can just set the IED_BEARER_TOKEN to your npm token.

In order to get your npm token, check your ~/.npmrc file.

Source: https://github.com/alexanderGugel/ied/blob/master/src/config.js#L94

(I'm currently putting together more comprehensive docs (as in "any" docs))

@timoxley
Copy link

@alexanderGugel this will allow git/tarball dependencies?

@alexanderGugel
Copy link
Owner

alexanderGugel commented Aug 3, 2016

@timoxley

Sorry for the delayed response.

Git and tarball dependencies are already supported thanks to @mgcrea

I'm trying to make the different resolvers more modular (similar to bower), but the current solution is quite reliable for now.

@gka
Copy link
Author

gka commented Aug 3, 2016

unfortunately that is still not fixing the problem for us, so we won't be able to use ied instead of npm. we need to be able to access private github repos through ssh authentication. not sure how IED_BEARER_TOKEN would help here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests