Skip to content
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

foliojs/font-manager: node-gyp install error #2945

Open
qwe317149766 opened this issue Nov 6, 2023 · 4 comments
Open

foliojs/font-manager: node-gyp install error #2945

qwe317149766 opened this issue Nov 6, 2023 · 4 comments

Comments

@qwe317149766
Copy link

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

@cclauss
Copy link
Contributor

cclauss commented Nov 7, 2023

https://github.com/foliojs/font-manager has no automated tests and has not been updated for a long time.
Please open an issue on that repo to get help.

@awsluja
Copy link

awsluja commented Dec 11, 2023

we are seeing the same issue as well with node-gyp.js "rebuild", investigating

@cclauss cclauss changed the title node-gyp install error foliojs/font-manager: node-gyp install error Dec 12, 2023
@codecompanion-ai
Copy link

Anyone found solution to this?
This happens for me without font-manager

@cclauss
Copy link
Contributor

cclauss commented Jan 27, 2024

@codecompanion-ai Please open a new issue and provide the command typed and the full error log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants