Another solution is Remove ng.ps1 from the directory C:Users%username%AppDataRoaming pm and clearing the npm cache