Bug1:npm WARN [email protected] requires a peer of less@^2.3.1 || ^3.0.0 but none is installed. Y...

使用npm安装插件时经常遇到这种报错:

npm WARN [email protected] requires a peer of less@^2.3.1 || ^3.0.0 but none is installed. You must install peer dependencies yourself.

我的解决方式就是安装它指明缺少的依赖:

npm install less -D

你可能感兴趣的:(Bug1:npm WARN [email protected] requires a peer of less@^2.3.1 || ^3.0.0 but none is installed. Y...)