vue报错:dependencies were not found: * element-ui in ./src/main.js * element-ui/lib/theme-chalk/inde

报错信息

These dependencies were not found:

* element-ui in ./src/main.js

* element-ui/lib/theme-chalk/index.css in ./src/main.js

vue报错:dependencies were not found: * element-ui in ./src/main.js * element-ui/lib/theme-chalk/inde_第1张图片

vue报错:dependencies were not found: * element-ui in ./src/main.js * element-ui/lib/theme-chalk/inde_第2张图片

vue报错:dependencies were not found: * element-ui in ./src/main.js * element-ui/lib/theme-chalk/inde_第3张图片

解决方案

1、 cmd进入命令行窗口,切入运行的项目文件夹下

2、输入 cnpm i element-ui -S(没有装淘宝镜像的使用  npm i element-ui -S)

再起项目,可以解决了

 

你可能感兴趣的:(前端,vue)