【问题标题】:npm uninstall -g create-react-app and yarn global remove create-react-app not workingnpm uninstall -g create-react-app 和 yarn global remove create-react-app 不起作用
【发布时间】:2022-01-23 13:41:11
【问题描述】:

我无法使用 npm uninstall -g create-react-appyarn global remove create-react-app 全局卸载 create-react-app。 我卸载了节点并安装了它仍然是同样的问题。

【问题讨论】:

  • 你的问题解决了吗?

标签: reactjs


【解决方案1】:

npm uninstall -g create-react-app 之后:

  1. npm cache clean --force
  2. npm cache verify
  3. npx clear-npx-cache 清除你的 npx 缓存。
  4. npx create-react-app your-appnpx create-react-app@latest my-app --use-npm

【讨论】:

    猜你喜欢
    • 2022-10-01
    • 2022-01-23
    • 2022-01-21
    • 2021-08-10
    • 2020-10-01
    • 2021-01-03
    • 2018-08-10
    • 2019-03-13
    • 2021-02-27
    相关资源
    最近更新 更多