折腾:
期间,在用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 的快捷方法 – 杨春炼的个人空间
【总结】
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