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
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
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.
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.
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
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
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.