当前位置:首页>文章>webpack 4 常见错误解疑

webpack 4 常见错误解疑

2018-03-31 2899 文章
项目 node 插件库版本不对,以 node-sass 为例
  1. ERROR in ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./style/css/style.scss
  2. Module build failed: Error: Missing binding G:\xxx\xxx\xxx\node_modules\node-sass\vendor\win32-x64-59\binding.node
  3. Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 9.x
  4. Found bindings for the following environments:
  5.   - Windows 64-bit with Node.js 8.x
  6. This usually happens because your environment has changed since running `npm install`.
  7. Run `npm rebuild node-sass --force` to build the binding for your current environment.
  8. ...
  9. ...
解决:运行 npm rebuild node-sass --force,即可。      

评论 (0)