装包报错:peerDependencies WARNING postcss-load-config@^3.0.0 requires a peer of postcss@>=8.0.9 but none was installed

1 背景

  1.1 装包

2 问题

  2.1 装包报错 peerDependencies WARNING postcss-load-config@^3.0.0 requires a peer of postcss@>=8.0.9 but none was installed

3 原因

  3.1 必须要先装postcss

4 解决办法

  4.1 安装postcss

cnpm install postcss -g

  4.2 再装自己的包,即可

cnpm install xxxxxxxxxx -g
posted @ 2022-05-07 16:48  不叫一日闲过  阅读(478)  评论(0编辑  收藏  举报