[gulp] Error: `libsass` bindings not found in ~

gulp時に発生したエラー。

#環境

  • Windows 7
  • nodejs v4.2.1
  • npm v3.3.8

#発生したエラー

発生したのは以下のようなエラー。

node_modules\node-sass\lib\extensions.js:148
    throw new Error(['`libsass` bindings not found in ', binaryPath, '. Try reinstalling `node-sass`?'].join(''));
    ^

Error: `libsass` bindings not found in node_modules\node-sass\vendor\win32-x64-46\binding.node. Try reinstalling `node-sass`?
    at Object.sass.getBinaryPath (node_modules\node-sass\lib\extensions.js:148:11)
    at Object. (node_modules\node-sass\lib\index.js:16:36)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object. (node_modules\gulp-sass\index.js:163:21)
    at Module._compile (module.js:435:26)

#解決方法

npm uninstall --save-dev gulp-sass
npm install --save-dev gulp-sass@2
npm rebuild node-sass
twitterfacebookhatenafacebook