【问题标题】:Not able Uninstall/Update Angular Cli in MAC无法在 MAC 中卸载/更新 Angular Cli
【发布时间】:2021-08-15 02:21:45
【问题描述】:

无法在 mac 中卸载 angular cli。

npm uninstall -g @angular/cli

【问题讨论】:

    标签: node.js angular macos angular-cli


    【解决方案1】:

    我有问题。问题出在我的 .bash_profile 文件中。我在 bash_profile 中注释了以下行,它工作正常。

    alias ng=/usr/local/Cellar/node/13.3.0/lib/node_modules/@angular/cli/bin/ng
    

    【讨论】:

      【解决方案2】:

      清除缓存。

      npm uninstall -g @angular/cli
      npm cache clean --force. 
      

      注意:在 macOS 中,您需要在 npm 命令之前添加 sudo。 ...

      npm uninstall -g angular-cli
      

      用于安装

      sudo npm install -g @angular/cli@latest
      

      【讨论】:

      • 感谢您的回复。它是固定的。问题出在我的 .bash_profile 文件上。
      猜你喜欢
      • 1970-01-01
      • 2020-08-01
      • 1970-01-01
      • 2019-12-15
      • 2018-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-14
      相关资源
      最近更新 更多