报错截图展示
报错代码提示
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报错》对你有帮助,请点赞、收藏,并留下你的观点哦!