【发布时间】:2021-12-29 18:37:26
【问题描述】:
我尝试使用npm i create-react-app、npx create-react-app new-app 和npm init react-app new-app 安装create-react-app,但我不断收到此错误消息:
You are running create-react-app 4.0.0, which is behind the latest release (4.0.1).
We no longer support global installation of Create React App.
我该如何解决这个问题?
【问题讨论】:
-
您之前是否全局安装过?
-
确保 node 和 npm Node >= 8.10 和 npm >= 5.6 的版本
-
我遇到了同样的问题。我正在运行节点 14.8 和 npm 6.14.8 所以@RamyRagab 这似乎不能解决问题
-
清除缓存是我的解决方案
标签: reactjs npm create-react-app npm-install npx