Closed inspectorG4dget closed 2 years ago
docker build fails to install npm with the following error:
docker build
npm
=> ERROR [tiktok_scraper.use 3/9] RUN apk update && apk add --update nodejs nodejs-npm python3 pkgconfig pixman-dev 2.9s ------ > [tiktok_scraper.use 3/9] RUN apk update && apk add --update nodejs nodejs-npm python3 pkgconfig pixman-dev: #6 0.340 fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz #6 1.497 fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz #6 2.580 v3.15.4-120-g7d9059ba5b [https://dl-cdn.alpinelinux.org/alpine/v3.15/main] #6 2.580 v3.15.4-119-gb71cf71a5b [https://dl-cdn.alpinelinux.org/alpine/v3.15/community] #6 2.580 OK: 15855 distinct packages available #6 2.833 nodejs-npm (no such package): #6 2.833 ERROR: unable to select packages: #6 2.866 required by: world[nodejs-npm] ------ executor failed running [/bin/sh -c apk update && apk add --update nodejs nodejs-npm python3 pkgconfig pixman-dev]: exit code: 1
To Reproduce Steps to reproduce the behavior:
Changing nodejs-npm to npm in the installs in Dockerfile fixed it
nodejs-npm
Dockerfile
docker build
fails to installnpm
with the following error:To Reproduce Steps to reproduce the behavior:
Changing
nodejs-npm
tonpm
in the installs inDockerfile
fixed it