安装npm install --global vue-cli出现问题,使用npm 安装 @vuecli时遇到的错误

45 篇文章 0 订阅
在尝试使用npm全局安装vue-cli时遇到了警告和错误,包括废弃的依赖警告和文件已存在错误。解决方案是删除已存在的vue相关文件,然后重新运行npm install --global vue-cli。
摘要由CSDN通过智能技术生成

安装npm install --global vue-cli出现问题

npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to “coffeescript” (no hyphen)
npm ERR! code EEXIST
npm ERR! path C:UserslilinAppDataRoaming pmue.cmd
npm ERR! EEXIST: file already exists
npm ERR! File exists: C:UserslilinAppDataRoaming pmue.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:UserslilinAppDataLocal pm-cache_logs?1-11-13T12_55_58_880Z-debug.log

解决办法:

进入

删除这3个vue

然后重新运行npm install --global vue-cli

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值