Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Missing binding C:\gin-vue-admin\web22\node_modules\node-sass\vendor\win32-x64-83\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 12.x
换了一台电脑,同样的文件夹,只是Node.js 的版本不一样了,之前是12.x,现在是14.x, npm run serve 报错。
解决方法如下:
1.npm install
2.npm audit fix --force
3.npm rebuild node-sass
4. 看错误提示,解决具体的问题