drawrowfly / tiktok-scraper

TikTok Scraper. Download video posts, collect user/trend/hashtag/music feed metadata, sign URL and etc.
4.44k stars 805 forks source link

npm doesn't install in docker build #760

Closed inspectorG4dget closed 2 years ago

inspectorG4dget commented 2 years ago

docker build fails to install npm with the following error:

 => 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

drawrowfly commented 2 years ago

620