tj / node-prune

Remove unnecessary files from node_modules (.md, .ts, ...)
MIT License
4.4k stars 130 forks source link

tj/node-prune crit platform linux/arm64 is not supported. #74

Closed amirraouf closed 3 years ago

amirraouf commented 3 years ago

Machine: Mac M1 - MacOs 11.5.2 (20G95) That happened while trying to build Ohmyforms using docker-compose That's the part failed at the dockerfile

RUN apk update && apk add curl bash && rm -rf /var/cache/apk/*

# install node-prune (https://github.com/tj/node-prune)
RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin

After pulling the images needed, it failed with this message

 > [ui 4/8] RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin:
#20 0.756 tj/node-prune crit platform linux/arm64 is not supported.  Make sure this script is up-to-date and file request at https://github.com/tj/node-prune/issues/new
------
executor failed running [/bin/sh -c curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin]: exit code: 1
ERROR: Service 'ohmyform' failed to build : Build failed
amirraouf commented 3 years ago

Duplicated