react 踩坑

1.安装了 node 

2.安装了 create-react-app

3.执行代码  create-react-app  报错  create-react-app 不是内部命令

解决方法:1.更新你的npm版本   npm  install  -g  npm@latest

     2.npx create-react-app myReact

4.缺陷:初始化慢   ,解决:https://blog.csdn.net/eagyne/article/details/53780653

猜你喜欢

转载自www.cnblogs.com/tutao1995/p/11315411.html