-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Gyp is failing to build #1754
Comments
What it your VS version? |
Did you find any fix for this ? I am having the same issue |
Sorry for the late reply; have been trying to find a workaround for this for a while now. @bzoz VS is version 2019 with the 2019 AND 2017 C++ Build Tools installed, Though I WILL note that for some reason the @YemiYemi no, I sadly have not after a couple of days of finding workarounds |
node-gyp v5.0.0 is out with Visual Studio 2019 support. It's not yet integrated into npm so it has to be installed manually. This should do it (only need to be run once): Windows Command Prompt
Powershell
That is, install node-gyp globally and make the npm config variable How to undo this after node-gyp is integrated into npmnpm uninstall --global node-gyp
npm config delete node_gyp
|
When trying to run the code referenced by @joaocgreis , I seem to be running into quite a few errors. I tried running them in Command Prompt, PowerShell, and Git Bash, and it seems nothing works. The error seems to come from the second line. |
@RandomAnimeGamer can you paste your output here? |
@joaocgreis Sorry for the late reply, I didn't see this in my inbox until now. For whatever reason, it started working in Command Prompt, but not Git Bash. I will check to see if it fixes my issues with Gyp builds failing. |
After checking, this still doesn't resolve my issues with Gyp builds. Here's an output log of me trying to install Discord.JS and its dependencies. Notice that every dependency that's building through Gyp is failing. While it does say it adds the packages to my project in the end, it still shows as if they were never installed in NPM, and thus it still warns me that it relies on those dependencies.
|
@MEXdave1997 for Powershell please run:
@RandomAnimeGamer that is an issue with the |
'msbuild' is not recognized as an internal or external command, operable program or batch file. 'cl' is not recognized as an internal or external command, operable program or batch file.
(?)Verbose output (from npm or node-gyp):
So when trying to install
bufferutils
anderlpack
modules for thediscord.js
module, I get the above error via log above. I am not sure if this is due to something missing in the configuration, or if its because thewinows-build-tools
module is misconfigured somehow (I followed the instructions to install them directly from the README). Let me knowThe text was updated successfully, but these errors were encountered: