I want to run Jekyll commands from Git Bash on Windows and am having some issues.
I installed Ruby and Jekyll using the instructions here. Everything works fine from the command prompt, but I realized I also needed to update my Git Bash path. So I did the following:
- In a Git Bash prompt,
touch .bash_profile
to create a profile. - Open the profile with
nano .bash_profile
- Add my Jekyll install path with:
export PATH=$PATH:/c/Users/Username/AppData/Local/Microsoft/WindowsApps/jekyll/bin
- Save and exit nano, restart Git Bash, restart my computer.
No matter what I do, Jekyll -v
in Git Bash gives me this:
/c/Users/Username/AppData/Local/Microsoft/WindowsApps/jekyll: line 6: /c/Users/Username/AppData/Local/Microsoft/WindowsApps/ruby: No such file or directory
Any thoughts on why this is happening? I checked my Git Bash profile and the path to Jekyll is successfully saved. I’m not sure what else to try. Thanks!