react 运行报错 Error: PostCSS plugin postcss-pxtorem requires PostCSS 8.

postcss-pxtorem使用方法:https://www.cnblogs.com/liangziaha/p/13636936.html

 

这里报错 postcss-pxtorem 需要 8. 我以为要使用postcss-pxtorem 8.以上的版本就去看了一下postcss-pxtorem版本最高才6.0

 

 

这里降低  postcss-pxtorem@5.1.1

npm i postcss-pxtorem@5.1.1

 

再次运行npm start 就可以了 

 

posted @ 2021-03-06 20:47  男孩亮亮  阅读(21031)  评论(2编辑  收藏  举报