Last active
July 29, 2024 08:43
-
-
Save itorr/04592da01932485fec65357f27ba1d2a to your computer and use it in GitHub Desktop.
2024-07-29 16:23 gypError.bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PS F:\git\cs2-block> npm i pcap --python_mirror=https://registry.npmmirror.com/-/binary/python/ --msbuild_path="C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe" | |
| npm error code 1 | |
| npm error path F:\git\cs2-block\node_modules\pcap | |
| npm error command failed | |
| npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild | |
| npm error pcap_binding.cc | |
| npm error f:\git\cs2-block\node_modules\pcap\pcap_binding.cc(2): fatal error C1083: 无法打开包括文件: “pcap/pcap.h”: No such file or directory [F:\git\cs2-block\node_modules\pcap\build\pcap_binding.vcxproj] | |
| npm error gyp info it worked if it ends with ok | |
| npm error gyp info using node-gyp@10.1.0 | |
| npm error gyp info using node@20.16.0 | win32 | x64 | |
| npm error gyp info find Python using Python version 3.12.2 found at "F:\Python312\python.exe" | |
| npm error gyp info find VS using VS2017 (15.9.35027.97) found at: | |
| npm error gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" | |
| npm error gyp info find VS run with --verbose for detailed information | |
| npm error gyp info spawn F:\Python312\python.exe | |
| npm error gyp info spawn args [ | |
| npm error gyp info spawn args 'D:\\Users\\w123\\AppData\\Roaming\\nvm\\v20.16.0\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py', | |
| npm error gyp info spawn args 'binding.gyp', | |
| npm error gyp info spawn args '-f', | |
| npm error gyp info spawn args 'msvs', | |
| npm error gyp info spawn args '-I', | |
| npm error gyp info spawn args 'F:\\git\\cs2-block\\node_modules\\pcap\\build\\config.gypi', | |
| npm error gyp info spawn args '-I', | |
| npm error gyp info spawn args 'D:\\Users\\w123\\AppData\\Roaming\\nvm\\v20.16.0\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi', | |
| npm error gyp info spawn args '-I', | |
| npm error gyp info spawn args 'C:\\Users\\w123\\AppData\\Local\\node-gyp\\Cache\\20.16.0\\include\\node\\common.gypi', | |
| npm error gyp info spawn args '-Dlibrary=shared_library', | |
| npm error gyp info spawn args '-Dvisibility=default', | |
| npm error gyp info spawn args '-Dnode_root_dir=C:\\Users\\w123\\AppData\\Local\\node-gyp\\Cache\\20.16.0', | |
| npm error gyp info spawn args '-Dnode_gyp_dir=D:\\Users\\w123\\AppData\\Roaming\\nvm\\v20.16.0\\node_modules\\npm\\node_modules\\node-gyp', | |
| npm error gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\w123\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\20.16.0\\\\<(target_arch)\\\\node.lib', | |
| npm error gyp info spawn args '-Dmodule_root_dir=F:\\git\\cs2-block\\node_modules\\pcap', | |
| npm error gyp info spawn args '-Dnode_engine=v8', | |
| npm error gyp info spawn args '--depth=.', | |
| npm error gyp info spawn args '--no-parallel', | |
| npm error gyp info spawn args '--generator-output', | |
| npm error gyp info spawn args 'F:\\git\\cs2-block\\node_modules\\pcap\\build', | |
| npm error gyp info spawn args '-Goutput_dir=.' | |
| npm error gyp info spawn args ] | |
| npm error gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe | |
| npm error gyp info spawn args [ | |
| npm error gyp info spawn args 'build\\binding.sln', | |
| npm error gyp info spawn args '/clp:Verbosity=minimal', | |
| npm error gyp info spawn args '/nologo', | |
| npm error gyp info spawn args '/p:Configuration=Release;Platform=x64' | |
| npm error gyp info spawn args ] | |
| npm error gyp ERR! build error | |
| npm error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1 | |
| npm error gyp ERR! stack at ChildProcess.<anonymous> (D:\Users\w123\AppData\Roaming\nvm\v20.16.0\node_modules\npm\node_modules\node-gyp\lib\build.js:209:23) | |
| npm error gyp ERR! stack at ChildProcess.emit (node:events:519:28) | |
| npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) | |
| npm error gyp ERR! System Windows_NT 10.0.19045 | |
| npm error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\Users\\w123\\AppData\\Roaming\\nvm\\v20.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" | |
| npm error gyp ERR! cwd F:\git\cs2-block\node_modules\pcap | |
| npm error gyp ERR! node -v v20.16.0 | |
| npm error gyp ERR! node-gyp -v v10.1.0 | |
| npm error gyp ERR! not ok | |
| npm error A complete log of this run can be found in: C:\Users\w123\AppData\Local\npm-cache\_logs\2024-07-29T08_43_03_949Z-debug-0.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment