doc: add tips about vcpkg cause build faild on windows

PR-URL: https://github.com/nodejs/node/pull/52181
Refs: https://github.com/nodejs/help/issues/1656
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
This commit is contained in:
Cong Zhang 2024-04-04 07:48:55 +08:00 committed by GitHub
parent d6b57f6629
commit dd711d221a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -590,6 +590,22 @@ to run it again before invoking `make -j4`.
### Windows
#### Tips
You may need disable vcpkg integration if you got link error about symbol
redefine related to zlib.lib(zlib1.dll), even you never install it by hand,
as vcpkg is part of CLion and Visual Studio now.
```powershell
# find your vcpkg
# double check vcpkg install the related file
vcpkg owns zlib.lib
vcpkg owns zlib1.dll
vcpkg integrate remove
```
Refs: #24448, <https://github.com/microsoft/vcpkg/issues/37518>, [vcpkg](https://github.com/microsoft/vcpkg/)
#### Prerequisites
##### Option 1: Manual install