解决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 install 的时候都报这个错误

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

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

 

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

然后 npm install 就没问题了。

原文地址:https://www.cnblogs.com/-mrl/p/14627753.html