robvanderleek / mudslide

Send WhatsApp messages from the command-line
ISC License
122 stars 12 forks source link

Unexpected token = #5

Closed PappaD closed 1 year ago

PappaD commented 1 year ago

No matter what I do I get an "Unexpected token =" error message.

daniel@instance-1:~$ npx mudslide --help
Unexpected token =
daniel@instance-1:~$ npx mudslide login
Unexpected token =
daniel@instance-1:~$ npx --version
5.8.0
daniel@instance-1:~$ node --version
v10.24.0
robvanderleek commented 1 year ago

Hi @PappaD

I'm not 100% sure but I think this is due to your version of NodeJS, Mudslide requires NodeJS 16 or higher.

What platform are you on? I've just created new x86 binaries for Linux and Windows: https://github.com/robvanderleek/mudslide/releases/tag/20230130-2

The files are pretty huge but your other alternative would be to upgrade NodeJS.

KR, Rob

PappaD commented 1 year ago

Works great on my ubuntu/x86, thank you very much! Is it possible to create a static executable for armv7l / RaspberryPi as well?

robvanderleek commented 1 year ago

I've added a static binary for ARM64 but ARMv7 does not seem so easy to cross-build unfortunately.

Note that it's also possible to run Mudslide inside a Docker container, I've updated the README for that.

Let me know if this is of any help 🙂

PappaD commented 1 year ago

Thank you very much, great piece of work! I will have a API call from my Raspberry PI to a x86 VM, it solves my problem. The RPI is a embedded appliance that cannot handle docker or node.

robvanderleek commented 1 year ago

Nice 😄 Happy texting!