npm ERR 404 npm ERR 404 ‘@vue/vue-loader-v15@15.9.8‘ is not in the npm registry.

事情是这样的,我今天准备安装element ui库,但是键入命令报错了。

于是我在网上找了一堆教程,什么更换npm源等,都无果。

最后我使用以下方法成功解决!

报错问题

  • 首先打开终端,输入如下命令。

    npm i element-ui -S
    
  • 然后出现报错信息。

    npm WARN deprecated core-js@2.6.12: core-js@<3.4 
    is no longer maintained and not recommended for usage due to the number of issues. Because of the 
    V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even 
    if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.     
    -v15 not found
    npm ERR! 404
    npm ERR! 404  '@vue/vue-loader-v15@15.9.8' is not in the npm registry.
    npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
    npm ERR! 404 It was specified as a dependency of '@vue/cli-service'
    npm ERR! 404
    npm ERR! 404 Note that you can also install from a
    npm ERR! 404 tarball, folder, http url, or git url.
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\86132\AppData\Roaming\npm-cache\_logs\2022-03-17T05_34_59_509Z-debug.log
    

    在这里插入图片描述

解决方法

  • 于是我删除了整个node_modules。

    整个删掉!

  • 紧接着再输入如下命令。

    npm i element-ui -S
    
  • 安装成功。
    在这里插入图片描述

  • 21
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 12
    评论
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值