我無法使用 create-react-app 創建新應用程式。我使用的命令是npx create-react-app appname --template typescript.
我得到的錯誤是:
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
我用npm uninstall -g create-react-app. 然后我檢查了打包沒有全域安裝
- 跑步
npm list -g - 檢查檔案夾 C:\Users\my-user\AppData\roaming\npm
但是 create-react-app 一直說我已經全域安裝了“create-react-app 4.0.3”。
畢竟我清理快取npm cache clean --force并重新啟動計算機,但結果相同。
我在 Windows 10、npm 7.18.1 和節點 16.4.0 上運行
我錯過了什么?
提前致謝
uj5u.com熱心網友回復:
這也抓住了我。你需要跑
npx clear-npx-cache
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/391843.html
上一篇:為什么我的“npminstall”會出現這么多漏洞?
下一篇:如何繼承帶有細長組件的插槽?
