Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

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を実行

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

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away