plouc / mozaik

Mozaïk is a tool based on nodejs / react / redux / nivo / d3 to easily craft beautiful dashboards
http://mozaik.rocks
MIT License
3.61k stars 363 forks source link

Supported node versions should be specified #19

Closed cluebcke closed 9 years ago

cluebcke commented 9 years ago

I had forgotten I had iojs-v1.1.0 installed--build failed. So I switched back to the latest stable node, v0.10.36. The build succeeded but when I ran node mozaik.js, I received the following error:

$ node mozaik.js
dyld: lazy symbol binding failed: Symbol not found: _node_module_register
  Referenced from: /Users/cluebcke/projects/tools/mozaik/node_modules/ws/build/Release/bufferutil.node
  Expected in: dynamic lookup

dyld: Symbol not found: _node_module_register
  Referenced from: /Users/cluebcke/projects/tools/mozaik/node_modules/ws/build/Release/bufferutil.node
  Expected in: dynamic lookup

Trace/BPT trap: 5

So I switched to v0.11.16 (yay nvm!) and now everything is fine.

plouc commented 9 years ago

@cluebcke did you ran npm install on iojs-v1.1.0 then switched to v0.10.36 ?

cluebcke commented 9 years ago

Actually yeah I did. Quite admittedly not the cleanest process, so I couldn't say exactly what combination of things made it all not work.

cluebcke commented 9 years ago

So I just switched to node v0.10.36 and re-cloned/installed/published in a fresh branch. Everything was fine. So that must have been caused by me bouncing around node versions between install and publish, which is nobody's idea of a supported use case. Sorry for the fuss, and thanks for being so responsive.

plouc commented 9 years ago

Probably caused by ws package, I've seen some issues regarding node-gyp/native addons, especially on OSX. I tried to run my tests on travis with node 0.11.* and iojs, but the build failed due to package install, it's good to know the limitations, thanks for reporting your problems.