error MSB8020: The build tools for v120 (Platform Toolset = 'v120') cannot be found. To build using

error MSB8020: The build tools for v120 (Platform Toolset = ‘v120’) cannot be found. To build using the v120 build tools, please install v120 build 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”. [E:\aPritice\JieDe\app\node_modules\buffertools\build\buffertools.vcxproj]

最开始我执行了npm install -g windows-build-tools,然而不起作用还是一样的报错
通过卸载Visual Studio
并安装2017直接下载visual statiu 15 2017 C++工具地址https://download.visualstudio.microsoft.com/download/pr/11503713/e64d79b40219aea618ce2fe10ebd5f0d/vs_BuildTools.exe
然后我去c盘下他说的文件夹,c盘
手动复制14,粘贴12.0,然而不起作用
后来执行代码,

set GYP_MSVS_VERSION=2015
npm install --msvs_version=2015

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值