Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encountering an issue with the script execution in Windows environment. #1294

Open
BenjaminKoshyBiju opened this issue Feb 10, 2024 · 1 comment
Labels

Comments

@BenjaminKoshyBiju
Copy link

BenjaminKoshyBiju commented Feb 10, 2024

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 BenjaminKoshyBiju changed the title Encountering an issue with the script execution in a Windows environment. Encountering an issue with the script execution in Windows environment. Feb 10, 2024
@YasharF YasharF added the bug label Feb 24, 2024
@YasharF
Copy link
Collaborator

YasharF commented Feb 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@YasharF @BenjaminKoshyBiju and others