Something went wrong installing the sharp module

Something went wrong installing the sharp module

Sometimes, when I switch to a new branch of Rocket.Chat I need to suffer pains from the native modules rebuilding. The sharp module for example, maybe possibly built unsuccessfully.

You will receive an error similar to Something went wrong installing the sharp module. The solution is to run the command meteor npm rebuild to rebuild modules. Hopefully, you can see some detailed errors during the recompiling/building and you can solve it easily.