![](/img/trans.png)
[英]Is there any way reading from store not from Component in React-redux?
[英]Is there any way to create a react-redux app
我一直在嘗試創建一個 react-redux 文件,但我在其中遇到了一些錯誤。 我遇到的問題是這個。 C:\Users\Maaz Parkar\Desktop\REDUX LOGIN>npx create-react-app my-app --template redux 需要安裝以下軟件包:create-react-app 確定繼續嗎? (y) y
您正在運行create-react-app
4.0.3,它落后於最新版本 (5.0.0)。
我們不再支持全局安裝 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 package
發現0個漏洞
試試這個庫
npm i -g create-react-redux-app-structure
或yarn add global create-react-redux-app-structure
create-react-redux-app-structure my-app
cd my-app
它將輕松創建更結構化的項目。
您顯然沒有正確安裝它。
首先確保 npm 和節點是最新的,然后打開命令提示符並寫入:
npx create-react-app <name>
<name>
是您的應用程序的名稱。
完成之后cd
進入文件夾並運行
npm i redux react-redux reduxjs/toolkit
或用紗線:
yarn add redux react-redux reduxjs/toolkit
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.