i have tried upgrading node-gyp: sudo npm install -g node-gyp It worked for me. I find the solution here, I hope it can help.