BabyDP
BabyDP2w ago

deno task setup can't run on Windows 11.

So I just downloaded an ongoing project that was created on Mac. I am currently working on windows 11 and when I run the command "deno task setup" I get this error. C:\Users\xxxxx\Documents\GitHub\xxxxx> deno task setup Task setup ./tasks/setup.sh Error launching './tasks/setup.sh': %1 is not a valid Win32 application. (os error 193) Does anyone know what steps I need to make to get this running? Sorry if this is a newb question.
3 Replies
coty
coty2w ago
The author configured that command to run a shell script. I’d suggest using WSL
CodyC
CodyC6d ago
Alternatively, translate setup.sh to a typescript file, like setup.ts, which Deno knows how to run on any platform. If you want to do shell-like things inside of a .ts file, I highly recommend Dax:
CodyC
CodyC6d ago
JSR
@david/dax - JSR
@david/dax on JSR: Cross-platform shell tools for Deno and Node.js inspired by zx.

Did you find this page helpful?