This issue does not apply to the Ubuntu version.
Edit (August 26, 2018):
Run npm list -g --depth=0 and see if @angular/ cli@xxx present in the results.
If this is not the case, then you probably set the corner in the local scope.
Install it globally using the Robert method mentioned here .
If the problem still persists, reinstall angular completely:
npm uninstall -g @angular/clinpm cache clear --forcenpm install -g @angular/cli
- Replace
@angular/cli with angular-cli if you installed an older version of angular.
If you installed node any other way, follow Edgar's method above .
source share