tj / node-prune

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

Support for armv7l #72

Open int0x27 opened 3 years ago

int0x27 commented 3 years ago

Currently https://gobinaries.com/tj/node-prune fails on 32bit Raspberry PI / also in linux/arm Docker containers:

$ uname -m
armv7l
$ curl -sf https://gobinaries.com/tj/node-prune | sh

  ==> Downloading github.com/tj/node-prune@master
  ==> Resolved version master to v1.2.0
  ==> Downloading binary for linux armv7

  Error downloading, got 500 response from server

I found that using "arch=arm" does work, but this workaround is a bit ugly in Dockerfiles:

RUN curl -w %{http_code} -sL -o /usr/local/bin/node-prune "https://gobinaries.com/binary/github.com/tj/node-prune?os=linux&arch=arm&version=v1.2.0" && chmod +x /usr/local/bin/node-prune
ankitpunchh commented 1 year ago

@int0x27 Facing same issue. Any idea ?

int0x27 commented 1 year ago

I already shared my workaround with custom curl URL