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

旧街凉风 提交于 2021-01-21 10:27:11

问题


I 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

this error. I've already google this error. Therefore, I set my python default version at 2.7 and install visual studio 2015 and visual studio 2017. Also I've reinstall node-gyp and npm to make sure if it is the latest version. And also, npm install --global --production windows-build-tools I've tried whatever I can google. PLEASE HELP!


回答1:


I also had this problem, And finally I didn't realize what was going on.

but

my problem was solved that way

I uninstall node 12.14.1 and install 10.18.1 It's working now.



来源:https://stackoverflow.com/questions/57814729/gyp-err-stack-error-c-program-files-x86-microsoft-visual-studio-2017-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!