fixing dlopen “no suitable image found” errors with node, sass and grunt

I ran in to this error today: $ grunt css Loading “sass.js” tasks…ERROR >> Error: dlopen(/path/to/project/node_modules/grunt-sass/node_modules/node-sass/vendor/darwin-x64-node-0.12/binding.node, 1): no suitable image found. Did find: >> /path/to/project/node_modules/grunt-sass/node_modules/node-sass/vendor/darwin-x64-node-0.12/binding.node: truncated mach-o error: segment __LINKEDIT extends to 1765408 which is past end of file 1765309 Running “sass:theme” (sass) task OptionParser::InvalidOption: invalid option: –image-path=assets/img Use –trace for backtrace. OptionParser::InvalidOption: invalid option: …