解决“npm WARN requires a peer of XXX“问题
在NodeJs开发中,往往需要安装各种依赖包,而有时候这些依赖包版本更新了或者改成了另外一个包名,导致npm install会报“requires a peer of XXX”之类的warning。解决方法,就是缺啥就补啥,命令如下:
npm install --save-dev "XXX"
比如,warning报“requires a peer of eslint@>=6.2.2 ”,如图(1)所示:
图(1) warning报"eslint@>=0.62.2" 依赖包缺失,安装该包即可
该warning表明当前工程缺少eslint@>=6.2.2依赖包,使用npm命令安装即可,如下:
npm install --save-dev "eslint@>=6.2.2"
解决“npm WARN requires a peer of XXX“问题相关推荐
- 深度解决npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
解决npm WARN config global --global, --local are deprecated. Use --location=global instead. 在安装完 node ...
- npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, or `
文章目录 npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, ...
- npm WARN ajv-keywords@2.1.1 requires a peer of ajv(已解决)
在执行npm install命令安装依赖包的时候,一直报错如下 npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none i ...
- npm WARN stylus-loader@3.0.2 requires a peer of stylus@>=0.52.4 but none is installed. You must inst
npm WARN stylus-loader@3.0.2 requires a peer of stylus@>=0.52.4 but none is installed. You must i ...
- 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 ...
- 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 ...
- npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed.
今天使用npm install 时一直发现有个WARN 作为一名稍微有代码洁癖和警告排障者来说 实在是不能忍 WARN信息:npm WARN ajv-keywords@3.2.0 requires a ...
- 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 ...
- npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed
npm安装easymock的依赖出错: npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. ...
- 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 ...
最新文章
- Watcher 实现机制之client注冊
- Linux系统编程之查看文件大小的方法(lseek and stat)
- ue4场景没阴影_UE4性能调试分析常用方法
- 牛客题霸 NC7 买卖股票的最好时机
- ArcEngine开发体验(附许可)
- [Mac入门] 如果更快的打开程序或文件
- 职业生涯中12个最致命的想法
- python捕获异常装饰器_python异常装饰器--比较全的版本了
- diskfileitemfactory 需要的包_《开心枕和生气包》中班下学期社会教案
- 浙江理工大学计算机考研试卷,2016年浙江理工大学计算机程序设计考研试题.pdf...
- 沙盘模拟软件_如何神还原数据中心?阿里联合NTU打造了工业级精度的仿真沙盘!...
- 转载_CSR867x — 说说什么是ANC、CVC、DSP降噪
- 计算机图形化编程命令,第三课图形化编程教学设计
- 非语言沟通:超越字词之外的信息(非语言沟通的诸多作用和具体种类)
- tweenMax下载和使用
- [Azure]使用Powershell输出某台ASM虚拟机的NSG和ACL
- Sentinel SuperPro加密锁编程开发指南
- C++课程设计——电话簿(文件流)
- ftp工具绿色版,带你了解ftp工具绿色版是什么
- 小米打印机显示服务器出错,更换小米路由器后打印机无法工作解决办法