Kylincsg 2022-07-14 11:08 采纳率: 0%
浏览 264

npm install -g @vue/cli下载不了

npm install -g @vue/cli下载不了,镜像能设置
C:\Users\85771>npm install -g @vue/cli
运行结果及报错内容 :

npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated subscriptions-transport-ws@0.11.0: The subscriptions-transport-ws package is no longer maintained. We recommend you use graphql-ws instead. For help migrating Apollo software to graphql-ws, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using graphql-ws, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md
npm ERR! code EEXIST npm ERR! path C:\Users\85771\AppData\Roaming\npm\vue.cmd
npm ERR! EEXIST: file already exists
npm ERR! File exists: C:\Users\85771\AppData\Roaming\npm\vue.cmd
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\85771\AppData\Local\npm-cache_logs\2022-07-14T02_57_59_508Z-debug-0.log

我的解答思路和尝试过的方法

npm i -g npm
npm cache clean --force
npm install -g @vue/cli

求解!!
  • 写回答

2条回答 默认 最新

  • 虎子8 2022-07-14 11:44
    关注

    File exists: C:\Users\85771\AppData\Roaming\npm\vue.cmd
    Remove the existing file and try again, or run npm

    去把C:\Users\85771\AppData\Roaming\npm\vue.cmd 这个文件删除

    评论

报告相同问题?

问题事件

  • 创建了问题 7月14日

悬赏问题

  • ¥50 关于#华为#的问题:华为HMS账号登录
  • ¥20 Html备忘录页面制作
  • ¥15 黄永刚的晶体塑性子程序中输入的材料参数里的晶体取向参数是什么形式的?
  • ¥20 数学建模来解决我这个问题
  • ¥15 计算机网络ip分片偏移量计算头部是-20还是-40呀
  • ¥15 stc15f2k60s2单片机关于流水灯,时钟,定时器,矩阵键盘等方面的综合问题
  • ¥15 YOLOv8已有一个初步的检测模型,想利用这个模型对新的图片进行自动标注,生成labellmg可以识别的数据,再手动修改。如何操作?
  • ¥30 NIRfast软件使用指导
  • ¥20 matlab仿真问题,求功率谱密度
  • ¥15 求micropython modbus-RTU 从机的代码或库?