LoginSignup
2
2

More than 5 years have passed since last update.

gulp-sass を使うと Error: Module did not self-register. と出力される

Last updated at Posted at 2015-01-23

それは Node.js のバージョンのせいかもしれない。

このエラー。

$ gulp sass
...
Module._extensions[extension](this, filename);
                                   ^
Error: Module did not self-register.
  at Error (native)
  ...

解決する方法

:warning: 2015年1月23日時点での解決法です。

それは Node.js のバージョンのせいかもしれない。

v0.11.* に ruby-sass は :warning: 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).

FAQ · joyent/node Wiki

@yudppp さん、ありがとうございます!

ソース

Module did not self-register · Issue #152 · dlmanning/gulp-sass

2
2
2

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
2
2