foliojs/font-manager: node-gyp install error
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 [email protected] gyp info using [email protected] | 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.
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.
we are seeing the same issue as well with node-gyp.js "rebuild", investigating
Anyone found solution to this? This happens for me without font-manager
@codecompanion-ai Please open a new issue and provide the command typed and the full error log.