43
35

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gulpコマンドで Error: The `libsass` binding was not found と表示された時の解決方法。

Posted at

gulpを実行したらエラーがでました。

gulpでエラー

エラーがでます\(^o^)/

gulp

/Users/pugiemonn/Documents/workspace/pugiemonn.com/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:158
    throw new Error([
          ^
Error: The `libsass` binding was not found in /Users/pugiemonn/Documents/workspace/pugiemonn.com/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node
This usually happens because your node version has changed.
Run `npm rebuild node-sass` to build the binding for your current node version.
    at Object.sass.getBinaryPath (/Users/pugiemonn/Documents/workspace/pugiemonn.com/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:158:11)
    at Object.<anonymous> (/Users/pugiemonn/Documents/workspace/pugiemonn.com/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:16:36)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/pugiemonn/Documents/workspace/pugiemonn.com/node_modules/gulp-sass/index.js:176:21)
    at Module._compile (module.js:460:26)

node-sass を rebuild

node-sassをrebuildします。

npm rebuild node-sass

再度gulpを実行

今度は成功しました(☝ ՞ਊ ՞)

43
35
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
43
35

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?