【问题标题】:Manually uninstalling create-react-app because npm uninstall not working手动卸载 create-react-app 因为 npm uninstall 不起作用
【发布时间】:2022-01-21 14:34:00
【问题描述】:

我尝试全局卸载 create-react-app

npm uninstall -g create-react-app

但它给了我这个结果

up to date, audited 1 package in 264ms

found 0 vulnerabilities

我有 node 版本 v17.3.0(目前是最新的稳定版本)和 npm 8.3.0(我已经运行了 npm update)

手动完成就足够了吗?

  1. 删除别名/usr/local/bin/create-react-app(使用which create-react-app查找)
  2. 删除它引用的文件夹:/usr/local/lib/node_modules/create-react-app/

【问题讨论】:

    标签: npm create-react-app uninstallation


    【解决方案1】:

    尝试使用以下命令清除 npx 缓存:

    npx clear-npx-cache
    

    这对我有用。

    【讨论】:

      猜你喜欢
      • 2022-01-23
      • 2022-10-01
      • 2022-01-23
      • 1970-01-01
      • 2021-01-03
      • 2021-08-10
      • 2021-09-26
      • 2020-04-14
      • 2022-01-17
      相关资源
      最近更新 更多