title: Jenkins | Node-Gyp error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found
body: <p>I am new and trying to set up a new Jenkins Build server and I am trying to to automate a node addon api project. I am facing following issue only on Jenkins server even when I try to run the node-gyp on cmd prompt, it is working fine.</p>
  
  <pre><code>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\jenkins_builds\Reporter-Backend\workspace\build\copy_binary.vcxproj]
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\jenkins_builds\Reporter-Backend\workspace\node_modules\node-addon-api\src\nothing.vcxproj]
  gyp ERR! build error 
  gyp ERR! stack Error: `msbuild` failed with exit code: 1
  
  Node version v10.15.3
  Node-Gyp v4.0.0
  Jenkins v2.164.3
  Visual Studio 2019
  </code></pre>
  
  <p>I have tried to set envirmont path as well as setting in Gyp file for correct msbuild path. But in Jenkins build is failed every time with above issue.</p>
  
  <p>Thank you in Advance.</p>