hackathon-starter icon indicating copy to clipboard operation
hackathon-starter copied to clipboard

Encountering an issue with the script execution in Windows environment.

Open BenjaminKoshyBiju opened this issue 1 year ago • 3 comments
trafficstars

Hi, so when I did npm install one of the scripts prepare="if [ "$NODE_ENV" != "production" ]; then husky install; fi" does not install properly giving me this error image Since I am using a windows cmd and its a bash syntax I wasnt able to install it. I changed the prepare script for my Windows env and it seems to work image I belive we can make this script cross-platform by using cross-env to the dependencies to set environment variables in a platform-independent way. Making the prepare script cross-platform would improve usability for both Windows and Linux users, ensuring a smoother experience for all contributors. Is making this script cross-platform a good idea? @YasharF I would like to create a new PR if I get the heads up.

BenjaminKoshyBiju avatar Feb 10 '24 08:02 BenjaminKoshyBiju

I will investigate this next time I am doing maintenance. In the meantime, as a workaround, you can use WSL in Windows. Let me know if you have any questions about going forward with WSL.

YasharF avatar Feb 24 '24 21:02 YasharF