D2 cli 'not recognized'

After I installed DHIS2 cli via yarn I still got this error, I cannot find any way to add it to my Path env var

Hi @Ameer_Salah

Welcome to the DHIS2 community!

I see the same issue in my user account and tried many times to resolve it but because it is very complicated, needs a lot of testing because it could be for many reasons, and it is most probably an issue because of cache (which is in many files.)

The way I solved this is by creating a new user account in my profile and ensure every step in the developers guide is clear and taken properly. Prerequisites and initial setup | DHIS2 Developer Portal And I believe it works because the new user account doesn’t have ‘cache.’

If I find an actual answer I will share … hope you’ll get more assistance from the community.