それは Node.js のバージョンのせいかもしれない。
このエラー。
$ gulp sass
...
Module._extensions[extension](this, filename);
^
Error: Module did not self-register.
at Error (native)
...
解決する方法
2015年1月23日時点での解決法です。
それは Node.js のバージョンのせいかもしれない。
v0.11.*
に ruby-sass は 2015年1月23日時点で対応していないので、v0.10
を使うようにしよう。
$ nodebrew install v0.10
$ nodebrew use v0.10
というか
v0.11.14
が unstable だっていうことを知らずに使っていた。v0.11.14-rc
とか付けて、正式版じゃないってことを CLI でもわかりやすく表明してほしい。
【追記】
コメントにて情報提供していただきましたが、node は偶数 バージョンが stable、奇数バージョンが unstable となっています。
What is the versioning scheme?
Odd versions are unstable, even versions are stable. v0.2 and v0.4 are even/stable. v0.3 and v0.5 are odd/unstable. The current stable series is v0.10.x. The next stable series will be v0.12.x. The stable branch takes bug fixes only - it does not change the JavaScript API, add-on API, nor ABI (you don't have to rebuild modules after upgrading node with-in a stable branch).
@yudppp さん、ありがとうございます!
ソース
Module did not self-register · Issue #152 · dlmanning/gulp-sass