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

时间:2022-01-13 18:00:56

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