1.输入npm installg @vue/cli 报错

如下

C:UserAdmin>npm installg @vue/cli
npm WARN config global `–global`, `–local` are deprecated. Use `–location=global` instead.
npm WARN deprecated sourcemapurl@0.4.1: See https://github.com/lydell/sourcemapurl#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-mapresolve@0.5.3: See https://github.com/lydell/source-mapresolve#deprecated
npm WARN deprecated resolveurl@0.2.1: https://github.com/lydell/resolveurl#deprecated
npm WARN deprecated subscriptions-transportws@0.11.0: The `subscriptions-transportws` package is no longer maintained. We recommend you use `graphqlws` instead. For help migrating Apollo software to `graphqlws`, see https://www.apollographql.com/docs/apolloserver/data/subscriptions/#switchingfrom-subscriptions-transportws    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:UsersAdminAppDataRoamingnpmvue.cmd
npm ERR! EEXIST: file already exists
npm ERR! File exists: C:UsersAdminAppDataRoamingnpmvue.cmd
npm ERR! Remove the existing file and try again, or run npm
npm ERR! withforce to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersAdminAppDataLocalnpm-cache_logs2022-11-06T01_20_35_702Z-debug-0.log

2.一定要注意标红的,本博主当时就是由于没有注意就走了很多弯路,这个红色的就是再给你提示,你没有配置vue环境变量

3.以下就是我的配置方法

详细步骤图片

 

 

 

 

 


 

 

原文地址:https://blog.csdn.net/weixin_64064226/article/details/127713758

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_48158.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注