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

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日

悬赏问题

  • ¥30 模拟电路 logisim
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
  • ¥15 is not in the mmseg::model registry。报错,模型注册表找不到自定义模块。
  • ¥15 安装quartus II18.1时弹出此error,怎么解决?
  • ¥15 keil官网下载psn序列号在哪
  • ¥15 想用adb命令做一个通话软件,播放录音
  • ¥30 Pytorch深度学习服务器跑不通问题解决?
  • ¥15 部分客户订单定位有误的问题
  • ¥15 如何在maya程序中利用python编写领子和褶裥的模型的方法
  • ¥15 Bug traq 数据包 大概什么价