cmd命令窗口,执行npm install
报错
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
解决方法:
批量安装不行,就一个一个地安装。
npm install ajv@^6.9.1
npm install webpack@^4.4.0
本文介绍了解决npm安装依赖时出现的peer警告问题。当尝试安装某些包时,如ajv-keywords和extract-text-webpack-plugin,npm会发出警告,提示缺少对应的peer依赖。为解决此问题,文章提供了具体的解决方案,即手动逐个安装缺失的peer依赖。
979

被折叠的 条评论
为什么被折叠?



