项目 node 插件库版本不对,以 node-sass 为例
- ERROR in ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./style/css/style.scss
- Module build failed: Error: Missing binding G:\xxx\xxx\xxx\node_modules\node-sass\vendor\win32-x64-59\binding.node
- Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 9.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 --force` to build the binding for your current environment.
- ...
- ...
解决:运行 npm rebuild node-sass --force
,即可。