kenanpengyou / express-webpack-full-live-reload-example

A workflow with full live reload for webpack&express application.
279 stars 88 forks source link

Node Sass could not find a binding for your current environment #5

Open jweboy opened 7 years ago

jweboy commented 7 years ago

ERROR in Missing binding F:\Project\Webpack\express-webpack-full-live-reload-exa mple\node_modules\node-sass\vendor\win32-x64-51\binding.node Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 7.x

Found bindings for the following environments:

This usually happens because your environment has changed since running npm ins tall. Run npm rebuild node-sass to build the binding for your current environment. @ ./client/page2/index.scss 4:14-191 13:2-17:4 14:20-197

尝试了node 6.3.0 与 7.0.0 npm 3.10.9 依然是这个错误,是什么原因?

kenanpengyou commented 7 years ago

@jweboy node-sass这个包的确很容易出现兼容问题。 你可以看下node-sass里的这个issue ,里面提到这样的解决方法尝试:

  1. 按照提示的npm rebuild node-sass执行,看是否解决问题
  2. 如果问题依然存在,删除整个node_modules目录,重新npm install
cryzzchen commented 7 years ago

可以试试yarn