atom-archive / electron-starter

Example Electron app
MIT License
530 stars 66 forks source link

Mac OS X: build fails: Symbol not found: _node_module_register #91

Closed wenjunche closed 9 years ago

wenjunche commented 9 years ago

Getting the following error when running build:

script/build
Node: v0.10.39
npm: v1.4.28
Installing build modules...
Installing apm...
Installing modules ✓
Deduping modules ✓
dyld: lazy symbol binding failed: Symbol not found: _node_module_register
  Referenced from: /Users/richard/Documents/ideaprojects/electron-starter/build/node_modules/asar/node_modules/chromium-pickle/build/Release/pickle.node
  Expected in: dynamic lookup

dyld: Symbol not found: _node_module_register
  Referenced from: /Users/richard/Documents/ideaprojects/electron-starter/build/node_modules/asar/node_modules/chromium-pickle/build/Release/pickle.node
  Expected in: dynamic lookup

I am using nvm on Darwin Kernel Version 13.4.0.

mainiak commented 9 years ago

I've same issue - but with different versions of node (higher/latest),

wenjunche commented 9 years ago

I got it working by checking out this repo to a new directory.

I was running node 0.12 first and then switched to 0.10 ( with nvm). I tried removing all node_modules without any luck. I ended up putting the project in a new directory.