I am trying to execute an ng command in angular-cli project in my windows 10 PC. node v6.9.1
- Globally installed the angular-cli.
- Tried a fresh npm install.
- Tried adding the path
C:\Users\MohamadS\AppData\Roaming\npm\node_modules\angular-cli\bin in uservariables in the path variable.
Still it says as in the picture.
Need help with the issue.
PS- can't use any of the ng commands.( ng g c /componentName/, ng build)
Edited -
- Tried the same angular-cli version in the project folder for the global installation as well.