今天在使用npm安装插件的时候提示如下错误:

npm WARN install Refusing to install vue-router as a dependency of itself

npm 阻止安装插件。

将npm的镜像改成taobao的镜像后测试还是不行,修改npm镜像:

sudo npm install -g cnpm --registry=https://registry.npm.taobao.org

  

后来发现是因为package.json里面的name名字和插件的名字同名,导致npm阻止插件安装。

转载于:https://www.cnblogs.com/ayseeing/p/4914438.html

npm WARN install Refusing to install vue-router as a dependency of itself相关推荐

  1. npm install vue@next 是报错npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscel

    npm install vue@next 是报错 npm WARN registry Unexpected warning for https://registry.npmjs.org/: Misce ...

  2. npm install 报错 npm WARN tar ENOENT: no such file or directory, open... 解决方式

    报错信息 npm install 报错 npm WARN tar ENOENT: no such file or directory, open- 解决方式 使用cnpm install

  3. npm WARN webpack-cli@3.3.11 requires a peer of webpack@4.x.x but none is installed. You must install

    安装webpack和webpack-cli时出现的问题: npm WARN webpack-cli@3.3.11 requires a peer of webpack@4.x.x but none i ...

  4. npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install pe

    1.问题: Your global`在这里插入代码片` Angular CLI version (12.1.1) is greater than your local version (11.2.14 ...

  5. npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install pe

    npm install 依赖警告 npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. Yo ...

  6. npm install报错,npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You m

    报错 npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install ...

  7. Vue “npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed”

    问题描述 vue  npm install   后出现警告: Vue "npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 b ...

  8. 安装webpack出现“Refusing to install package with name webpack under a package”

    安装webpack出现"Refusing to install package with name "webpack" under a package" npm ...

  9. [Vue Router warn]: Component “default“ in record with path “/xx“ is a function that does not return

    [debug日记] [Vue Router warn]: Component "default" in record with path "/xxx" is a ...

最新文章

  1. Hi3516A开发--烧写/启动模式
  2. 利用ionic3进行上一行和左一行不动,中间移动的功能
  3. 【TypeScript系列教程04】编译参数
  4. Hamcrest总结--思维导图
  5. 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误
  6. 万能钥匙ctf--4-ReeHY-main调试记录--unlink
  7. linux文件压缩包,linux目录文件压缩包操作
  8. 力扣724.寻找数组的中心索引
  9. Aspose.Words for .NET
  10. Java程序如何获得自己的进程ID?
  11. cjson使用_LD3320语音识别模块:LDV7模块使用详解
  12. 12简单推导:切面条
  13. 永洪bi logo更换
  14. PIP卸载升级与安装不成功
  15. 华为p9总显示切换服务器中,怎么更改华为p9的多任务切换 | 手游网游页游攻略大全...
  16. 交换机下接路由器lan还是wan_小白请教,自家网络搭建中,光猫、交换机、无线路由器、NAS布线问题...
  17. 基于低代码为企事业单位打造督办事务管理一体化协同管控平台
  18. 【12月原创】RT-thread - 柿饼UI ——范进中举
  19. ObjectMapper实现将Java对象转为json字符串
  20. 自己制作Windows PE工具盘

热门文章

  1. 64位Linux下JVM内存调设遇到GC问题的备忘
  2. MapReduce基础开发之十三FileSystem实现本地文件上传
  3. Leetcode 378. 有序矩阵中第K小的元素 解题思路及C++实现
  4. fiery服务器系统安装,Fiery_SC5500_服务器安装步骤.pdf
  5. 中兴高达和中兴啥关系_41家通信传输设备公司研发投入排名:中兴通讯、烽火通信最敢投...
  6. 5. 最长回文子串——基于扩展中心法的优化
  7. 教你创建高大上的多边形字体
  8. Python+Selenium 自动化-指定chrome驱动运行selenium实例演示,运行指定位置下的浏览器驱动
  9. Python+selenium 技术篇-浏览器后台运行
  10. CTFshow 信息收集 web19