npm install error: MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”

When I tried to run angular 4 material2 demo on my windows server 2012, got a error message:

node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@1.4.0 and node@6.11.1 (node-v48 ABI) (falling back to source compile with node-gyp)

MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”

 

To solve this issue, you can run bellow script as admin:

 

# as admin
npm install --global --production windows-build-tools

 

posted @ 2017-08-06 07:41  shuzhen.yu  阅读(4334)  评论(0编辑  收藏  举报