我使用该命令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
Run Code Online (Sandbox Code Playgroud)
这个错误。我已经用谷歌搜索过这个错误。因此,我将 python 默认版本设置为 2.7 并安装 Visual Studio 2015 和 Visual Studio 2017。此外,我还重新安装了 Node-gyp 和 npm 以确保它是否是最新版本。而且,npm install --global --production windows-build-tools我已经尝试了任何可以谷歌搜索的方法。请帮忙!