Create-react-app 錯誤訊息


Posted by Christy on 2021-12-24

下這個指令 $ npx create-react-app todo --template redux 就出現以下錯誤訊息

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).

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/

嘗試了上面兩種方法都不行,最後是下面這個指令成功,不過蠻奇怪的,我裝在 w22 週的資料夾就可以用 redux,但是新建的 w23 週就不行

$ npx create-react-app@latest your-project-name --use-npm

create-react-app is not working since version 4.0.1

下次要安裝我會先 create-react-app 再裝 redux 比較順。

又出現了一樣的錯誤訊息,這次我改成這樣

$ npx create-react-app@latest todo --template redux

接著 npm 裝了 prettier / prettier-eslint / eslint / styled-component

畫面就跑起來了,太好了










Related Posts

DE2_115(DAY3)以niosii去控制板子上的sdram

DE2_115(DAY3)以niosii去控制板子上的sdram

TypeScript Foundations - Index Signatures 索引特徵

TypeScript Foundations - Index Signatures 索引特徵

form - input

form - input


Comments