事情是这样的。公司要求半个月使用vue-element-admin做完两个后台管理系统,于是我就被迫从app直接转过来接手。其实半年都没有使用vue了猛一下子还有点手生。没有关系,继续冲鸭!!
我当时直接用git bash配置
npm install vue-cropper
完了以后就报错了,如下:
npm ERR! Cannot read property 'match' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-08-06T01_49_46_486Z-debug.log
解决方法
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install
网友评论