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

5.npm start  报错   react  react-scripts  不是内部命令     原因:create-react-app 建立文件存在丢包的风险    npm   install  就好了

原文地址:https://www.cnblogs.com/tutao1995/p/11315411.html