mailing list of musl libc
 help / color / mirror / code / Atom feed
* must-utils update (1.1.18-r3 -> 1.1.20-r1) on 3.7 package list causing npm nodejs to break
@ 2018-09-18 22:01 Pranab Dhar
  0 siblings, 0 replies; only message in thread
From: Pranab Dhar @ 2018-09-18 22:01 UTC (permalink / raw)
  To: musl

Hi,

I have come across a problem while using Node npm in alpine linux 3.7 in a docker container as outlined in this Yarn issue https://github.com/yarnpkg/yarn/issues/6384

+ npm install chai
npm ERR! code EADDRNOTAVAIL
npm ERR! errno EADDRNOTAVAIL
npm ERR! request to https://registry.npmjs.org/chai failed, reason: getaddrinfo EADDRNOTAVAIL registry.npmjs.org:443

I have been able to recreate the issue using this docker script at the end of this email.

To build docker image from the Dockerfile folder command line :
    docker build -t testnode .

 To see a success remove the line ‘musl-utils \’.

 I believe musl dev group would be able shed more light into the issue.

- Pranab

###################################################################################
#                         Base OS  Alpine 3.7                                     #
################################################################################### 

FROM alpine:3.7


RUN set -ex \
    && cat /etc/alpine-release \
    && cat /etc/apk/repositories \
    && apk upgrade --update-cache --available \
    && apk add --no-cache \
        libc6-compat \
        musl-dev \
        bash \
        bash-completion \
        wget \
        curl \
        tar \
        zip \
        unzip \
        which \
        findutils \
        net-tools \
        iproute2 \
        xz \
    && apk info -vv | sort \
    && echo "http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
    && echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
    && echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
    && echo apk upgrade -v  --progress --update-cache --available \
    && apk add --progress -u --no-cache \
        libc6-compat \
        musl-dev \
        bash \
        bash-completion \
        wget \
        curl \
        tar \
        zip \
        unzip \
        which \
        findutils \
        xz \
        iproute2 \
        net-tools \
        alpine-baselayout \
        musl \
        busybox \
        pkgconf \
        ncurses-terminfo-base \
        ncurses-terminfo \
        ncurses-libs \
        readline \
        bash-completion \
        libressl2.7-libcrypto \
        ca-certificates \
        nghttp2-libs \
        libssh2 \
        libressl2.7-libssl \
        libressl2.7-libtls \
        ssl_client \
        libcurl \
        curl \
        findutils \
        jansson \
        libnftnl-libs \
        iptables \
        iproute2 \
        iproute2-bash-completion \
        scanelf \
        musl-utils \
    && apk add --progress --no-cache \
        openconnect \
        nodejs \
        nodejs-npm \
    && apk info -vv | sort \
    && npm init -y \
    && npm install chai
       





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-18 22:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-18 22:01 must-utils update (1.1.18-r3 -> 1.1.20-r1) on 3.7 package list causing npm nodejs to break Pranab Dhar

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).