![无法在 Alpine Linux 中安装 NPM,尽管它存在于存储库中](https://linux22.com/image/1571145/%E6%97%A0%E6%B3%95%E5%9C%A8%20Alpine%20Linux%20%E4%B8%AD%E5%AE%89%E8%A3%85%20NPM%EF%BC%8C%E5%B0%BD%E7%AE%A1%E5%AE%83%E5%AD%98%E5%9C%A8%E4%BA%8E%E5%AD%98%E5%82%A8%E5%BA%93%E4%B8%AD.png)
这是我的 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
发生什么问题了?