gpt4 book ai didi

c++ - "error MSB8020: The build tools for v141 (Platform Toolset = ' v141 ') cannot be found"尝试安装 npm 模块 scrypt

转载 作者:行者123 更新时间:2023-11-28 01:26:28 24 4
gpt4 key购买 nike

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

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

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

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

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 studio 2015。我必须先卸载它。我不知道为什么不使用最新的构建工具实例。

在此之后,将 Node 降级到 v8,可以再次安装和编译 scrypt。

关于c++ - "error MSB8020: The build tools for v141 (Platform Toolset = ' v141 ') cannot be found"尝试安装 npm 模块 scrypt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53537733/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com