安装vue-cli时报错npm ERR! code EEXIST
npm ERR! path D:\nodejs\node_global\vue
npm ERR! EEXIST: file already exists
npm ERR! File exists: D:\nodejs\node_global\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! D:\nodejs\node_cache_logs\2022-08-25T06_26_16_544Z-debug-0.log
直接在安装命令npm i -g @vue/cli
后面加上--force
亲测有效