Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Missing binding D:\2@Html\vue_work_room\blsh-student-view\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 8.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
at module.exports (D:\2@Html\vue_work_room\blsh-student-view\node_modules\node-sass\lib\binding.js:15:13)
at Object.<anonymous> (D:\2@Html\vue_work_room\blsh-student-view\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at getDefaultSassImplementation (D:\2@Html\vue_work_room\blsh-student-view\node_modules\sass-loader\dist\utils.js:43:10)
at getSassImplementation (D:\2@Html\vue_work_room\blsh-student-view\node_modules\sass-loader\dist\utils.js:57:30)
at Object.loader (D:\2@Html\vue_work_room\blsh-student-view\node_modules\sass-loader\dist\index.js:34:59)
解决办法:
卸载原有的node-saas
npm uninstall node-sass
安装新的:
npm install [email protected]