Vue:Error: PostCSS received undefined instead of CSS string

问题

出现这样的报错提示,一般是安装的node-sass有问题,用cnpmp执行重新指定安装node-sass,然后在npm install就正常了。

我安装的版本是4.14.1

解决方案

cnpm install node-sass --save-dev

npm install

npm run serve

另:如果你报错“Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.”,就先卸载掉,然后重新安装,操作如下:

//卸载

node-sass npm uninstall node-sass

//安装最新版本(5.0之前)

扫描二维码关注公众号,回复: 13212052 查看本文章

npm install [email protected]

 //重新install 并运行,程序正常了。

npm install 

npm run serve

猜你喜欢

转载自blog.csdn.net/quan278905570/article/details/118927151