ng: The term 'ng' is not recognized as a name of a cmdlet, function, script file, or executable program. code example
Example: 'ng' is not recognized as an internal or external command, operable program or batch file.
npm install -g @angular/cli
npm install -g @angular/cli