简体   繁体   English

Create-React-App需要Node 4.0或更高版本

[英]Create-React-App requires Node 4.0 or higher

I installed NodeJs LTS v6.9.5 for windows, and then did npm -g install create-react-app But it gave me a warning that I need node 4.0 我为Windows安装了NodeJs LTS v6.9.5,然后执行了npm -g install create-react-app但它警告我需要节点4.0

When I run node --version, I got 0.12.2 当我运行节点--version时,我得到0.12.2

And when I run : create-react-app hello-world I got the error: 当我运行:create-react-app hello-world时,出现错误:

"You are running Node 0.12.2 Create React App requires Node 4 or higher" “您正在运行Node 0.12.2 Create React App要求Node 4或更高版本”

any idea how to make it work. 任何想法如何使其工作。

And why node version shows 0.12.2, when I installed NodeJs LTS v6.9.5 以及为什么在我安装NodeJs LTS v6.9.5时节点版本显示0.12.2

You have multiple versions of node installed on your machine thats why it is showing 0.12.2 . 您在计算机上安装了多个版本的节点,这就是为什么它显示0.12.2 Use n or nvm to change or switch node versions. 使用nnvm更改或切换节点版本。 (They are not supported on windows yet). (Windows尚不支持它们)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Create-React-App需要Node 4.0或更高版本-在Windows上 - Create-React-App requires Node 4.0 or higher - on Windows `npx create-react-app` 说它需要“节点 14 或更高版本”,但我运行的是 17.4.0。 我怎样才能解决这个问题? - `npx create-react-app` says it requires "Node 14 or higher" but I'm running 17.4.0. How can I fix this? create-react-app 说“Create React App 需要 Node 14 或更高版本。” 修复节点给出“npm 不支持 Node.js v10.19.0” - create-react-app says "Create React App requires Node 14 or higher." Fixing node gives "npm does not support Node.js v10.19.0" create-react-app eslint问题,因为更高级别的文件夹包含另一个包含node_modules的应用程序 - create-react-app eslint issue due to higher level folder containing another app with node_modules in it Node 应用程序是否有等效的 create-react-app? - Is there an equivalent of create-react-app for Node apps? create-react-app 不支持的节点版本 - create-react-app unsupported node version 您正在运行节点 12.13.0。 Create React App 需要 Node 14 或更高版本。 请更新您的节点版本 - You are running Node 12.13.0. Create React App requires Node 14 or higher. Please update your version of Node 使用节点后端部署 create-react-app 的建议 - Recommendations on deploying create-react-app with node backend 带有节点Express的create-react-app获得%PUBLIC_URL% - create-react-app with node express getting %PUBLIC_URL% npx create-react-app 上的 Node.JS EBADF 错误 - Node.JS EBADF error on npx create-react-app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM