安装vue-cli时报错 npm ERR! code EEXIST


安装vue-cli时报错 npm ERR! code EEXIST

执行npm install -g @vue/cli

npm ERR! code EEXIST
npm ERR! path C:\Users\Gypsophila\AppData\Roaming\npm\node_modules@vue\cli\node_modules_apollo-codegen-core@0.39.1@apollo-codegen-core\node_modules@babel\generator\node_modules.bin\jsesc.ps1
npm ERR! Refusing to delete C:\Users\Gypsophila\AppData\Roaming\npm\node_modules@vue\cli\node_modules_apollo-codegen-core@0.39.1@apollo-codegen-core\node_modules@babel\generator\node_modules.bin\jsesc.ps1: …/…/…/…/_jsesc@2.5.2@jsesc/bin/jsesc symlink target is not controlled by npm C:\Users\Gypsophila\AppData\Roaming\npm\node_modules@vue\cli\node_modules_apollo-codegen-core@0.39.1@apollo-codegen-core\node_modules@babel\generator\node_modules\jsesc
npm ERR! File exists: C:\Users\Gypsophila\AppData\Roaming\npm\node_modules@vue\cli\node_modules_apollo-codegen-core@0.39.1@apollo-codegen-core\node_modules@babel\generator\node_modules.bin\jsesc.ps1
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\Gypsophila\AppData\Roaming\npm-cache_logs\2021-07-07T10_55_48_714Z-debug.log
在这里插入图片描述
使用管理员权限启动cmd也无效,后来直接删除node_modules下的@vue文件夹,再执行
npm install -g @vue/cli
就可以安装了

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值