How to fix npm install in Mastering React course vidly-api-node?

I am following along the course of Mastering React, currently i am having problem with npm install, when i clone ‘vidly-api-node’ from gihtub. it logging a bunch of errors related to gyp and bcrypt_lib? Can anyone explain why i am having this problem and how to fix?

Finally i found out the solution after long search on google, if anyone encounters this kind of issue in the future here are the commands to run:

sudo npm cache clean -f
sudo npm install -g n
sudo n 8.4.0