本文介绍了“错误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:

有任何提示或建议吗?

推荐答案

几个小时后,我发现安装了旧的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时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 03:22