nadavshatz / ember-cli-foundation-sass

Automatically sets up Foundation 5 SASS in your Ember CLI app.
https://www.npmjs.org/package/ember-cli-foundation-sass
MIT License
68 stars 18 forks source link

Getting Error: Module did not self-register. #8

Closed krzkrzkrz closed 9 years ago

krzkrzkrz commented 9 years ago

Came across a problem. Would love to hear some feedback, workaround/solution.

I did: $ ember g foundation-sass and got:

version: 0.1.2
installing
Installing browser packages via Bower...
  not-cached git://github.com/zurb/bower-foundation.git#~5.4.7
  resolved git://github.com/zurb/bower-foundation.git#5.4.7
  cached git://github.com/jquery/jquery.git#2.1.1
  not-cached git://github.com/mathiasbynens/jquery-placeholder.git#~2.0.7
  not-cached git://github.com/ftlabs/fastclick.git#>=0.6.11
  not-cached git://github.com/carhartl/jquery-cookie.git#~1.4.0
  not-cached git://github.com/Modernizr/Modernizr.git#>= 2.7.2
  cached git://github.com/jquery/jquery.git#2.1.1
  resolved git://github.com/mathiasbynens/jquery-placeholder.git#2.0.8
  resolved git://github.com/carhartl/jquery-cookie.git#1.4.1
  resolved git://github.com/ftlabs/fastclick.git#1.0.3
  progress received 0.5MB
  progress received 0.5MB
  resolved git://github.com/Modernizr/Modernizr.git#2.8.3
  conflict Unable to find suitable version for jquery
    1) jquery ^1.11.1
    2) jquery >=1.2
    3) jquery >= 2.1.0
    4) jquery >= 1.7.0 < 2.2.0
[?] Answer:
            1
Installed browser packages via Bower.
  create app/styles/app.scss
  install packages ember-cli-sass, broccoli-clean-css
Installing packages for tooling via npm..Binary downloaded and installed at /home/foo/Sites/bar/ui/node_modules/ember-cli-sass/node_modules/broccoli-sass/node_modules/node-sass/vendor/linux-x64/binding.node
`linux-x64` exists; testing
module.js:355
  Module._extensions[extension](this, filename);
                               ^
Error: Module did not self-register.
    at Error (native)
    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> (/home/foo/Sites/bar/ui/node_modules/ember-cli-sass/node_modules/broccoli-sass/node_modules/node-sass/lib/index.js:181:15)
    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)
node-sass@1.2.3 postinstall: `node scripts/build.js`
Exit status 1
Error: Exit status 1
    at ChildProcess.<anonymous> (/home/foo/Sites/bar/ui/node_modules/ember-cli/node_modules/npm/lib/utils/lifecycle.js:212:16)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1000:16)
    at Process.ChildProcess._handle.onexit (child_process.js:1072:5)
Globegitter commented 9 years ago

I think this might be related to https://github.com/joliss/broccoli-sass/pull/40#issuecomment-64085038 and https://github.com/sass/node-sass/issues/550

One person is commenting:'I also was able to fix the problem by switching from node 0.11.x to 0.10.x.'

krzkrzkrz commented 9 years ago

Thanks for that. I realized I was using the non stable version of Node.