The various build tools are not recognized as (Platform Toolset 'v141'). There needs to be a way to install the v141 platform tools for use with Visual studio 2019.
Npm ERR! A complete log of this run can be found in: I've run into this issue today, and retargeting the solution is not an option. There is likely additional logging output above. So download the right one for your Visual Studio version, otherwise it won't work. Npm ERR! This is probably not a problem with npm. Visual Studio 2017 has a platform toolset 14.1 (often msvc-141) Visual Studio 2019 has a platform toolset 14.2 (often msvc-142) Yes it's quite vague and not so logical but Miscrosoft is Microsoft. Npm ERR! install: 'prebuild-install -tag-prefix || node-gyp rebuild' Gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) Gyp ERR! stack at ChildProcess.emit (events.js:214:7) Gyp ERR! stack at emitTwo (events.js:126:13) Gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23) Gyp ERR! stack Error: 'msbuild' failed with exit code: 1 Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cliĬk the solution, and then selecting 'Retarget solution'.
To build using the v141 build tools, please install v141 bui Ools for v141 (Platform Toolset = 'v141') cannot be found.