I upgraded my version of node. npm rebuild
and deleting my node_modules directory does not seem to work for me to rebuild my C++ addons. I'm still getting this error:
Error: The module '[...]/node_modules/node-expat/build/Release/node_expat.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 46. This version of Node.js requires
NODE_MODULE_VERSION 51. Please try re-compiling or re-installing
I think it would be nice to just blow away all the C++ addons (or maybe just this one if you could target them) which would likely solve my problem. Any quick and easy way to do this?