-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install packages failed with only VS2019 installed #8065
Comments
@rayncc thank you for the issue! Can you make sure you've installed the necessary prerequisites, namely the following should fix the issue: sudo apt-get install build-essential I'm not sure which operating system you are using however as it is not described. |
I'm working on Windows platform, so... I think it's a bug of node-gyp 3.8.0, which is used by dev-packages/electron. See: I changed the node-gyp version and it worked. But I don't know whether the change will affect other packages, still trying... BTW, I've tried to install Microsoft Build Tools 2015/2017, or 'npm install windows-build-tools', they won't work |
@rayncc there are windows specific build instructions. I’m not sure why you mentioned ‘Visual Studio’ but is not necessary in order to successfully build (for example I don’t have it installed nor do colleges which build on Windows). |
I also make apps with .net, so I need to install visual studio 2019. and vs2019 have already provided build tools that node-gyp needs. gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT node-gyp tried to locate MSBuild.exe, but with vs2019, the correct path is: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe this is fixed by node-gyp at version 5.1.0 |
I can confirm the initial issue. I had to force building a theia-based app with the |
Tried and done. It's fixed. Thanks alot |
Bug Description:
Failed with errors below:
Steps to Reproduce:
1.An PC with only vs2019 installed.
2.yarn
Additional Information
Theia version: lastest master branch.
Change the node-gyp version in 'dev-packages/electron' to 5.1.0 or above will work:
The text was updated successfully, but these errors were encountered: