【问题标题】:error with create-react-app, behind 5.0.15.0.1 后面的 create-react-app 错误
【发布时间】:2022-07-11 07:31:26
【问题描述】:

每当我跑步时

npx create-react-app my-app-name

它会抛出这个错误:

You are running create-react-app
4.0.3, which is behind the latest release (5.0.1).
We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

【问题讨论】:

标签: reactjs


【解决方案1】:

如果你只是运行命令:

npx clear-npx-cache

同意下载包,你可以简单地重新运行create-react-app 命令,它应该可以正常工作

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-06-14
    • 2021-01-06
    • 2018-11-05
    • 2019-01-22
    • 2017-02-18
    • 2021-04-24
    • 1970-01-01
    • 2022-06-13
    相关资源
    最近更新 更多