“错误MSB8020:找不到v141的构建工具(平台工具集='v141')"尝试安装npm module scrypt时 [英] "error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found" when trying to install npm module scrypt

查看:547
本文介绍了“错误MSB8020:找不到v141的构建工具(平台工具集='v141')"尝试安装npm module scrypt时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装npm模块 scrypt .

I´m trying to install the npm module scrypt.

我知道scrypt需要node-gyp,我在全局安装了它(几次).我也知道node-gyp需要python 2.7和MS Build Tools.我安装了最新的python 2.7版本,并安装了MS Build Tools.我还尝试使用VS Community Edition2017.尝试修复并重新安装两者.

I know scrypt requires node-gyp, i installed it globally (several times). Also I know node-gyp requires python 2.7 and MS Build Tools. I installed the latest python 2.7 build and i installed MS Build Tools. I also tried with VS Community Edition 2017. I tried to repair and reinstall both.

我还安装了npm软件包 windows-build-tools (多次) )在全球范围内取得成功.

I also installed npm package windows-build-tools (several times) globally successful.

但是我尝试npm i scrypt我遇到以下错误:

But wenn i try npm i scrypt i got the following errors:

C:\ Program文件 (x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ V140 \ Microsoft.Cpp.Platform.targets(57,5): 错误MSB8020:v141的生成工具(平台工具集='v141') 找不到.要使用v141构建工具进行构建,请安装 v141内置工具.或者,您可以升级到当前版本 通过选择项目"菜单或右键单击Visual Studio工具 解决方案,然后选择重新定位解决方案". [c:\ project \ node_modules \ scrypt \ build \ copied_files.vcxproj] C:\ Program 档案文件 (x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ V140 \ Microsoft.Cpp.Platform.targets(57,5): 错误MSB8020:v141的生成工具(平台工具集='v141') 找不到.要使用v141构建工具进行构建,请安装 v141内置工具.或者,您可以升级到当前版本 通过选择项目"菜单或右键单击Visual Studio工具 解决方案,然后选择重新定位解决方案". [c:\ project \ node_modules \ scrypt \ build \ scrypt_wrapper.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 bu ild 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:\project\node_modules\scrypt\build\copied_files.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 bu ild 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:\project\node_modules\scrypt\build\scrypt_wrapper.vcxproj]

有任何提示或建议吗?

推荐答案

几个小时后,我发现安装了旧的Visual Studio2015.我必须先将其卸载.我不知道,为什么不使用最新的构建工具实例.

After a few more hours, i found out there was an old installation of visual studio 2015. I had to uninstall it first. I have no clue, why not the newest instance of build tools was used.

此后,将Node降级到v8,可以安装scrypt并再次编译.

After this, and downgrading Node to v8, scrypt could be installed and compiled again.

这篇关于“错误MSB8020:找不到v141的构建工具(平台工具集='v141')"尝试安装npm module scrypt时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆