node.jsangularnpmangular-cli

angular-cli installs but ng command is not recognized


It happens that when I install angular cli, it gets stuck at this point

I have looked for any solution , install/uninstall node.js and tried to use different versions of node and npm with no success.

EDIT: After uninstalling node.js, erasing npm folder in appdata, and reinstalling again, it installs but it does not recognize the ng command as shown here


Solution

  • It seems it is a path issue. This solution helped me fix it on macOs High Sierra.

    ng --version

    Found it from https://github.com/angular/angular-cli/issues/5021