无法在 Alpine Linux 中安装 NPM,尽管它存在于存储库中

无法在 Alpine Linux 中安装 NPM,尽管它存在于存储库中

这是我的 Dockerfile,其中的说明除最后一行外均有效:

RUN echo http://nl.alpinelinux.org/alpine/v3.5/main > /etc/apk/repositories; \
    echo http://nl.alpinelinux.org/alpine/v3.5/community >> /etc/apk/repositories; \
    echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories; \
    echo @edgecommunity http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories; \
    echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories

RUN apk update
RUN apk upgrade
RUN apk add --upgrade apk-tools@edge
RUN apk add nodejs
RUN apk add npm

印刷:

ERROR: unsatisfiable constraints:
  npm-8.12.0-r0:
    masked in: @edge
    satisfies: world[nodejs-current-npm]

我检查了 Alpine 软件包存储库,它就在那里:http://nl.alpinelinux.org/alpine/edge/main/x86_64/在主存储库站点中:https://pkgs.alpinelinux.org/package/edge/main/x86/npm

发生什么问题了?

相关内容