由于安装了最新的vue 4 导致一些不可抗力(自己菜)。。
npm ERR! code EEXIST
npm ERR! path C:\Users\32783\AppData\Roaming\npm\node_modules\@vue\cli\bin\vue.js
npm ERR! dest C:\Users\32783\AppData\Roaming\npm\vue
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\32783\AppData\Roaming\npm\node_modules\@vue\cli\bin\vue.js' -> 'C:\Users\32783\AppData\Roaming\npm\vue'
npm ERR! File exists: C:\Users\32783\AppData\Roaming\npm\vue
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\32783\AppData\Roaming\npm-cache\_logs\2021-05-20T01_02_42_081Z-debug.log
更换vue版本错误
由于更换的vue版本太低导致的
npm install -g @vue/cli@3.0.4 --force
用上面的代码强制覆盖
vue --version // 查询版本是否为3.x