foliojs/font-manager: node-gyp install error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.7k
- Forks
- 1.9k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 5
Description
error E:\coding\linux_file\douyin_motrix\node_modules\font-manager: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: E:\coding\linux_file\douyin_motrix\node_modules\font-manager
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@10.0.1
gyp info using node@19.9.0 | win32 | x64
gyp info find Python using Python version 3.8.10 found at "C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe"
gyp info find VS using VS2017 (15.9.34118.181) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe
gyp info spawn args [
gyp info spawn args 'C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'E:\coding\linux_file\douyin_motrix\node_modules\font-manager\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Administrator\AppData\Local\node-gyp\Cache\19.9.0\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\Administrator\AppData\Local\node-gyp\Cache\19.9.0',
gyp info spawn args '-Dnode_gyp_dir=C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\Administrator\\AppData\\Local\\node-gyp\\Cache\\19.9.0\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=E:\coding\linux_file\douyin_motrix\node_modules\font-manager',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'E:\coding\linux_file\douyin_motrix\node_modules\font-manager\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build\binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
FontManager.cc
e:\coding\linux_file\douyin_motrix\node_modules\font-manager\src\fontdescriptor.h(176): error C2664: “bool v8::Value::BooleanValue(v8::Isolate *) const”: 无法将参数 1 从“v8::Localv8::Context”转换为“v8::Isolate *” [E:\coding\linux_file\douyin_motrix\node_modules\font-manager\build\fontmanager.vcxproj]
e:\coding\linux_file\douyin_motrix\node_modules\font-manager\src\fontdescriptor.h(176): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符
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
gyp ERR! stack at ChildProcess. (C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\node-gyp\lib\build.js:209:23)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "D:\coding\nvm_node\node.exe" "C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd E:\coding\linux_file\douyin_motrix\node_modules\font-manager
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the node-gyp rebuild with Node 19.9.0 on Windows and inspect src/fontdescriptor.h at line 176, where the compiler error is reported. Compare the failure with the node-gyp and font-manager context in the report; done requires determining the responsible project and documenting or confirming a resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, nodejs, python
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100