gyp ERR!堆栈错误:`C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ BuildTools \ MSBuild \ 15.0 \ Bin \ MSBuild.exe`失败,退出代码为:1

问题描述 投票:1回答:1

enter image description here我使用命令truffle unbox react构建了dapp。这只是我dapp开发的第一步。但是,它很烂。它不断弹出

gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

此错误。我已经用谷歌搜索了这个错误。因此,我将python的默认版本设置为2.7,并安装了Visual Studio 2015和Visual Studio2017。此外,我还重新安装了node-gyp和npm以确保它是最新版本。而且,npm install --global --production windows-build-tools我已经尝试了所有可以用Google搜索的内容。请帮助!

reactjs npm msbuild visual-studio-2017 truffle
1个回答
0
投票

我也有这个问题,最后我不知道发生了什么。

但是

我的问题就这样解决了

我卸载节点12.14.1并安装10.18.1,现在可以正常工作。

© www.soinside.com 2019 - 2024. All rights reserved.