Install npm packages for node.js 10 on windows

Install windows build tools

https://github.com/nodejs/node-gyp

Install  Visual Studio Build Tools

npm install -g --production windows-build-tools

Install Visual C++ 2010 SP1 Dist

https://www.microsoft.com/zh-tw/download/details.aspx?id=13523

Reference:

  1. https://stackoverflow.com/questions/21658832/npm-install-error-msb3428-could-not-load-the-visual-c-component-vcbuild-ex
  2. https://blog.poychang.net/npm-install-error-could-not-load-the-visual-c-component-vcbuild/
  3. https://cnodejs.org/topic/510a98acdf9e9fcc58ee157b