I upgrade my node version from v7.1.0 to v9.4.0. After this m trying to run my server then I get this.
was compiled against a different Node.js version using
NODE_MODULE_VERSION 51. This version of Node.js requires
NODE_MODULE_VERSION 59. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
then I know about npm rebuild
. I run both command npm rebuild
and npm install
. It fixed after run npm rebuild
but I do not understand what it does.
Please explain about npm rebuild
thank you