项目场景:
npm ERR! code EEXIST
npm ERR! path D:
odejs
ode_globalnpm
ode_modules@vuecliinue.js
npm ERR! dest D:
odejs
ode_globalnpmue
npm ERR! EEXIST: file already exists, cmd shim 'D:
odejs
ode_globalnpm
ode_modules@vuecliinue.js' -> 'D:
odejs
ode_globalnpmue'
npm ERR! File exists: D:
odejs
ode_globalnpmue
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:Program Files
odejs
ode_cache_logs2021-01-25T07_14_17_763Z-debug.log
问题描述:
原因分析:
主要原因是安装vue的版本过低。
解决方案:
npm install -g @vue/cli --force
可以强制覆盖以前旧版本的vue-cli脚手架