原文:npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.

解决: npm install g npm install peers npm install g npm npm i ajv 但是好像没啥用 ...

2019-05-20 16:21 0 3675 推荐指数:

查看详情

根本上解决npm install 报错“ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.

每次项目npm install 的时候都报这个错误, 然后网上找的方法就把这个 ajv重新安装下,感觉有点麻烦, 后来有次我把npm更新了一下(我的版本是: 6.1.0),更新到了最新版本,这个问题就咋也没出现过了,原来是npm版本的问题。 查看自己的npm版本: npm -v ...

Wed Feb 20 22:00:00 CST 2019 0 24406
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM