简体   繁体   中英

The build tools for v141 (Platform Toolset = 'v141') cannot be found

I am writing code to load c++ dll from electron. I have installed Visual Studio v141 tools but when running npm install I get the following error: "The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 b uild 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". [D:\CodeLathe\ElectronPOC\Practice\dll\backup\ElectronCall ingDll_NaN_CloutDriveTestLib\build\jsToCppBridge.vcxproj]"

I saw all the similar questions in stackoverflow but none of the answers worked for me. The same problem is not reproducible on my colleague's machine

Could you try setting npm config set msvs_version 2015 ? This sets the build tools version to lower.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM