Creating components and services from terminal NOT working

I am not able to create components or services from the terminal on vs code. I have to manually create the files but would like to do it from the terminal so other files (like .html or .spec.tst are created as well). So far I have been able to do the exercises because I create them manually but whenever i type “ng g c name” or “ng g s name” on the terminal, nothing happens, if anyone may know what the issue is it would be much appreciated. Thanks!