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: Thesubscriptions-transport-ws
package is no longer maintained. We recommend you usegraphql-ws
instead. For help migrating Apollo software tographql-ws
, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help usinggraphql-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