Skip to main content

npx create-react-app 失敗紀錄

· One min read
HuangCianRong

錯誤情境

執行 npx create-react-app 失敗,顯示錯誤:

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

解決方案

npx clear-npx-cache

問題原因

因為 npx cache 的 bug,所以我們只要清掉 cache 就可以了。

參考資料:

[Solved] We no longer support global installation of Create React App - Exception Error