最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】create-react-app创建项目时提示:You are using Node v4.4.7 so the project will be boostrapped with an old unsupported version of tools

ReactJS crifan 1908浏览 0评论

折腾:

【记录】学习HBuilder和React.js

期间,在用create-react-app创建项目时提示:

➜  sourcecode create-react-app reactjstest
Creating a new React app in /Users/crifan/dev/dev_root/daryun/Projects/奥拓/sourcecode/reactjstest.
You are using Node v4.4.7 so the project will be boostrapped with an old unsupported version of tools.
Please update to Node 6 or higher for a better, fully supported experience.

所以,先去升级Node:

Please update to Node 6 or higher for a better, fully supported experience

The Best Way to Install Node.js – yoember.com

mac 升级node

MAC 升级 node.js 的快捷方法 – 杨春炼的个人空间

更新 Node 版本 – 陈斌彬的技术博客

关于Mac升级Node的快捷方法 – 简书

【总结】

Mac中升级Node的,参考:

关于Mac升级Node的快捷方法 – 简书

根据提示去操作:

➜  sourcecode node -v
v4.4.7
➜  sourcecode sudo npm cache clean -f
Password:
npm WARN using –force I sure hope you know what you are doing.
➜  sourcecode sudo npm install -g n
/usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
[email protected] /usr/local/lib/node_modules/n
➜  sourcecode sudo n stable
     install : node-v8.0.0
       mkdir : /usr/local/n/versions/node/8.0.0
       fetch : https://nodejs.org/dist/v8.0.0/node-v8.0.0-darwin-x64.tar.gz
######################################################################## 100.0%
   installed : v8.0.0
➜  sourcecode node -v
v8.0.0

即可。

转载请注明:在路上 » 【已解决】create-react-app创建项目时提示:You are using Node v4.4.7 so the project will be boostrapped with an old unsupported version of tools

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.171 seconds, using 22.07MB memory