node.js - Cannot uninstall angular-cli -


i've tried several times uninstall angular-cli in order update if follow instructions provided on github:

  • npm uninstall -g @angular/cli
  • npm cache clean
  • npm install -g @angular/cli@latest

when check using command ng --version still old version :

 angular-cli: 1.0.0-beta.26   node: 7.7.1  os: darwin x64 

how can fix issue? thanks

updating angular cli

https://github.com/angular/angular-cli#updating-angular-cli

if you're using angular cli 1.0.0-beta.28 or less, need uninstall angular-cli package first.

npm uninstall -g angular-cli npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli@latest 

then when gets done may try:

ng -v


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -