【已解决】EEXIST npm ERR path Dnodejsnode_globalnpmnode_modules@vueclibinvue.js npm ERR dest D

当尝试安装低版本的vue-cli时遇到EEXIST错误。问题源于已有更高版本的vue-cli。解决方案是使用npm覆盖安装,以确保低版本成功安装。参照给出的博客链接可详细理解问题及解决步骤。
摘要由CSDN通过智能技术生成

项目场景:

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脚手架

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值