【发布时间】:2021-12-31 17:02:48
【问题描述】:
当我尝试使用标准 create-react-app tut1 创建一个新的 react 应用程序时,我得到:
您正在运行 Node v12.18.3。
创建 React 应用程序需要 Node >=14.0.0 或更高版本。
请更新您的 Node 版本。
我很奇怪,因为我已经更新了 botch npm & node 使用:
install npm@latest -g
和
npm install -g node@latest
此外,当我输入npm list -g node 时,我得到node@17.3.0 但是当我检查节点版本时node -v 我确实老了v12.18.3,为什么会有这样的差异?
【问题讨论】: