I'm using bash on ubuntu 20.04 in wsl2 with 2 tabs. In the first tab I have downloaded angular cli and I can invoke angular cli commands normally (ng version), but in the second tab, it doesn't find the executable and it prints an error suggesting to download another package ( as if angular cli isnt installed ).
Command 'ng' not found, but can be installed with:sudo apt install ng-common
Can anyone explain me why this is happening since it happens with other prgrams? How bash works? (Acesses, profiles)