Vue Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer’ 问题
vue运行时,提示Vue Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer’ 。
问题原因:未安装postcss-loader autoprefixer。执行以下命令:
cnpm install postcss-loader autoprefixer postcss -D
执行成功,如果运行时还报以下错误:
PostCSS plugin autoprefixer requires PostCSS 8
说明PostCSS 版本不对,需要指定版本执行,执行以下脚本:
cnpm install postcss-loader autoprefixer@8.0.0 postcss -D
执行成功,重新运行正常。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)