npm reported MSBUILD error solution

npm reported:
MSBUILD: error MSB3428: Failed to load the Visual C ++ component "VCBuild.exe". To solve this problem, 1) install the .NET Framework 2.0 SDK; 2) install Microsoft Visual Studio 2005; or 3) if the component is installed in another location, add its location to the system path.

Just use this tool and solve all problems at once:
https://github.com/felixrieseberg/windows-build-tools

npm install –global –production windows-build-tools
need to pay attention to the need to install administrator rights, CMD right-click administrator to open

Guess you like

Origin www.cnblogs.com/a-dou/p/12751078.html