本文主要是介绍安装vue-cli时报错 npm ERR! code EEXIST,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
文章目录
- 安装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
就可以安装了
这篇关于安装vue-cli时报错 npm ERR! code EEXIST的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!