I guess you did not have the make tools available when you installed your mongodb library. I suggest you do
xcode-select --install
(on a mac)
or sudo apt-get install gcc make build-essential
(on ubuntu)
and run
rm -rf node_modules
npm cache clean
npm install
OR just npm update based on @tobias comment (after installing build-essential)
npm update
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…