项目中下载的 vue-video-player 为 6.0.0
在我运行项目 npm run serve 和项目打包 npm run build的时候 一直抛错说找不到 vue-video-player
经查是 vue-video-player 版本过高不兼容导致
解决方法:
1.删除 package-lock.js 和 node_modules
2.清除缓存 npm cache clean --force
3.重新下载 node_modules 包
4..重新下载 vue-video-player 低版本 (我下载的是 5.0.2)
npm i vue-video-player@5.0.2 --save
然后就可以啦!