tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc/lang/npm build failure: IPv6 failed connection



On Tue, 2 Aug 2022 18:37:50 +0100
David Brownlee <abs%absd.org@localhost> wrote:

> On Thu, 12 May 2022 at 08:09, David Holland <dholland-pkgtech%netbsd.org@localhost> wrote:
> >
> > On Wed, May 11, 2022 at 11:28:31AM +0100, David Brownlee wrote:
> >  > Attempting to build pkgsrc/lang/npm on an IPv4 connected netbsd-9/amd64 box
> >  > is failing for me with:
> >  >
> >  > + node . i --ignore-scripts --no-audit --no-fund
> >  > npm ERR! code EHOSTUNREACH
> >
> > Builds shouldn't be downloading!
> 
> Just an update on this - while builds should absolutely not be
> downloading, I'm not the right person to try wading around inside npm
> to try to fix it.

I tried to wade this swamp a few weeks ago -- while it is possible
to create an .npmrc and override the registry to file://${WRKDIR}
like we do for rust & go, it still needs to go online to resolve module
metadata in json format and it seem it is not possible to cache that
offline in a sensible way without spinning up an entire package
repository service on http://localhost:8080. At that point I gave up ...



Home | Main Index | Thread Index | Old Index