npm install 的时候都报这个错误

解决npm install 报错“npm WARN pug-loader@2.4.0 requires a peer of pug@^2.0.0 but none is installed. You must install peer dependencies yourself.“

 

 

npm更新了一下(我的版本是: 6.1.0),更新到了最新版本,这个问题就咋也没出现过了,原来是npm版本的问题。

查看自己的npm版本: npm -v

 解决npm install 报错“npm WARN pug-loader@2.4.0 requires a peer of pug@^2.0.0 but none is installed. You must install peer dependencies yourself.“

 

 

更新本机的npm到最新版本:npm install -g npm

然后 npm install 就没问题了。

相关文章:

  • 2022-12-23
  • 2021-10-28
  • 2021-09-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-09-09
  • 2021-07-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-10-28
  • 2021-09-12
  • 2022-02-20
  • 2021-05-26
相关资源
相似解决方案