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

2024-07-03

enter image description hereI used the command truffle unbox react to build a dapp. It is just the initial step of my dapp development. However, it sucks. It continually pops up

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 Studio 2017。此外,我还重新安装了 Node-gyp 和 npm 以确保它是否是最新版本。并且,npm install --global --production windows-build-tools我已经尝试了任何可以谷歌搜索的方法。请帮忙!


我也遇到这个问题了,最后没明白怎么回事。

but

我的问题就这样解决了

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

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

吉普 错误!堆栈错误:`C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe`失败,退出代码:1 的相关文章

随机推荐