Looks like we finally (months later... :) ) got our npm replica running.

We forgot to install the couchapps as documented on
http://clock.co.uk/tech-blogs/how-to-create-a-private-npmjs-repository
Once we did that, things seemed to go easier ( we were able to replicate to
the latest without having to setup an admin user and a couple other hoops
we tried earlier).

We also had to fix the secure_rewrites issue as documented at
https://groups.google.com/d/topic/npm-/x1ha7x7zx5k/discussion (Isaac, it
might be good to put that tip in the npmjs.org repo readme). That solved
the "couchdb {"error":"insecure_rewrite_rule","reason":"too many ../..
segments"}" error we were getting.

We were then able to install from our repo using npm --registry... etc. So
thanks again for the help we've gotten in this list and at other places.
The more info on running your own replica (and eventually, something like
Artifactory?) the better.

andy

On Thu, Jul 11, 2013 at 12:45 AM, andy e <[email protected]> wrote:

> After a lot of good advice in here, we eventually replicated a copy of the
> npm repo (using couch 1.2.x and Windows - go figure).
>
> We finally stood it up in our private environment and had some problems.
>
> If we run 'npm --registry http://ourrepo.com/registry install Base64' it
> will first resolve against our repo. The json file it returns points to a
> tarball at 'http://repository.npmjs.org/...' though, which won't work for
> us (we're offline). Is that a setting we can change during replication,
> i.e. point to localhost or an IP/host instead of npmjs.org?
>
> Even if we manually try to use curl to pull the .tgz by hitting '
> http://ourrepo.com/registry/Base64/-/Base64-0.1.2.tgz' we get a 404 with
> the following JSON error:
>
> "{ error: 'not found', reason: 'document is missing attachment' }"
>
> But if we hit ../registry/Base64/Base64-0.1.2.tar.gz, the file is there
> and is valid. It's like our redirects don't work/resolve.
>
> Any ideas? When I dig around in the couchapp (~/_utils) everything looks
> to be there. This happens with all dep's, not just Base64 of course.
>
> thanks,
>
> andy
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to