输入
npm install
报错完整内容:
30 packages are looking for funding
run `npm fund` for details
found 60 vulnerabilities (22 low, 14 moderate, 22 high, 2 critical)
run `npm audit fix` to fix them, or `npm audit` for details
解决方法:
npm fund
其他情况:
当node_model存在的时候 ,也有可能是配置出现了问题 1.0版 create-react-app 和 2.0 版本 在配置项上有很大的区别 定义变量抛出 exports default 不好使 换成 model.exports 就可以了
运行成功截图
![](https://img-blog.csdnimg.cn/20201125112013556.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM3OTE2MTY0,size_16,color_FFFFFF,t_70)