【问题标题】:Is there any way to create a react-redux app有没有办法创建一个 react-redux 应用程序
【发布时间】:2022-01-20 21:42:40
【问题描述】:

我一直在尝试创建一个 react-redux 文件,但我遇到了一些错误。 我遇到的问题是这个。 C:\Users\Maaz Parkar\Desktop\REDUX 登录>npx create-react-app my-app --template redux 需要安装以下包: 创建反应应用 可以继续吗? (y) 是的

您正在运行create-react-app 4.0.3,它落后于最新版本 (5.0.0)。

我们不再支持全局安装 Create React App。

请使用以下命令之一删除所有全局安装:

  • npm 卸载 -g create-react-app
  • yarn 全局删除 create-react-app

可在此处找到有关创建新应用的最新说明: https://create-react-app.dev/docs/getting-started/

C:\Users\Maaz Parkar\Desktop\REDUX LOGIN> npm uninstall -g create-react-app

最新,在 250 毫秒内审核了 1 个包

发现 0 个漏洞

【问题讨论】:

  • 如果您阅读了您发布的链接,它会解释您需要做的一切。
  • 我做了,但它没有帮助我
  • npx create-react-app my-app --template redux
  • @MaazParkar 您是否尝试卸载全局安装的npx 版本? npm uninstall -g create-react-app

标签: reactjs npm redux


【解决方案1】:

你没有正确安装它。

首先确保 npm 和 node 是最新的,然后打开命令提示符并写入:

npx create-react-app <name>

&lt;name&gt; 是您的应用的名称。

完成后cd进入文件夹并运行

npm i redux react-redux reduxjs/toolkit

或者用纱线:

yarn add redux react-redux reduxjs/toolkit

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-03-25
    • 1970-01-01
    • 2020-01-10
    • 1970-01-01
    • 2020-04-09
    • 2021-10-02
    • 2022-01-25
    • 2018-07-18
    相关资源
    最近更新 更多