失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > vue项目启动webpack打包sass报错

vue项目启动webpack打包sass报错

时间:2019-10-24 10:22:53

相关推荐

vue项目启动webpack打包sass报错

报错截图展示

报错代码提示

ERROR Failed to compile with 1 errorerror in ./src/styles/index.scssSyntax Error: Error: Missing binding C:\Users\Administrator\Desktop\xxx\xxx\xxx\node_modules\node-sass\vendor\win32-x64-83\binding.nodeNode Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.xFound bindings for the following environments:- Windows 64-bit with Node.js 12.xThis usually happens because your environment has changed since running `npm install`.Run `npm rebuild node-sass` to download the binding for your current environment.

报错原因

Node Sass找不到适合您当前环境的绑定:Windows 64位,带有Node.js 14.x

解决方案

npm rebuild node-sass

如果觉得《vue项目启动webpack打包sass报错》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。