Closed aprilb closed 9 years ago
is it on github or bitbucket? how your component.json looks like?
github
need more information:
{ "name": "shared-scripts", "repository": "treetopllc/shared-scripts", "version": "0.0.0", "private": true, "description": "Treetop Commons shared Javascript files", "main": "index.js", "scripts": [ "index.js" ] }
netrc which is valid. component version 1.0.0
I add add you to my private test reop, it works fine for me with component 1.0.2
$ component install timaschew/TodoFPM-test-private
installed : timaschew/todofpm-test-private@master in 783ms
install : complete
is it working for you?
can you show me the content of your netrc (without the password/token)
machine github.com login xxxxxx password x-oauth-basic
machine api.github.com login xxxxxx password x-oauth-basic
actually i am using component 1.0.2
did you say you added me to timaschew/TodoFPM-test-private?
$ component install timaschew/TodoFPM-test-private
fatal : no remote found for dependency "timaschew/todofpm-test-private@master". Visit http://component.github.io/troubleshooting for help.
your netrc is wrong, you need to change the first host entry, instead of github.com
you need raw.githubusercontent.com
There was an error in the guide, it was fixed some weeks ago: https://github.com/componentjs/guide/blob/master/component/getting-started.md#configuring-github-access
ok, great. yeah, that did it. thanks for looking into it.
actually, looks like I needed all three:
$ cat $HOME/.netrc machine github.com login xxxxxxxxx password x-oauth-basic
machine raw.githubusercontent.com login xxxxxxxxx password x-oauth-basic
machine api.github.com login xxxxxxxxx password x-oauth-basic
What's the error if you omit the github.com host? Because there should be no request for this host.
If there is an error DEBUG=* component install user/repo
should show where the error comes from
Here is the error if i leave out api.github.com:
Error: no remote found for dependency "mochajs/mocha".
at Resolver.
no, drop github.com
not api.github.com
instead of github.com you need raw.githubusercontent.com
kk. Will do.
I have a private repo with the correct user permissions --problem is that it won't load.