1

Recently, in my git bash no longer working yarn, giving me the error bash: yarn: command not found, as if it was never installed.

But as you can see in the attached photo, it is present.
I also tried to reinstall the package but still nothing...

This problem coincides with the installation of IDEA and I think the problem may come from here, however I have not found anything useful on the internet.

1
  • IntelliJ has nothing to do with your Git Bash's PATH, and you should ideally use WSL2 rather than Git Bash nowadays Commented Dec 16, 2021 at 21:38

1 Answer 1

2

As mentioned here:

  • check your path (echo $PATH in your bash session).
    Said path should reference /C/Users/username/AppData/Roaming/npm/node_modules/yarn/bin

  • if not, install yarn through npm install --global yarn (global installation)

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks! I added the path and now it works
@SaverioRandazzo Perfect, well done!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.