Skip to content

[BUG] Cannot install ttfautohint #1

@amermahyoub

Description

@amermahyoub

Describe the bug
Install of ttfautohint via npm cannot be made. It displays an error, as shown here in the logs

Terminal Code

`(base) C:\Users\am00208\Iosevka>npm i -g ttfautohint
npm ERR! code 1
npm ERR! path C:\Users\am00208\Anaconda3\node_modules\ttfautohint
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install
npm ERR! # [ttfautohint] Getting precompiled binary for WIN32/x64
npm ERR! # [ttfautohint] TypeError: Invalid URL
npm ERR! at new URL (node:internal/url:775:36)
npm ERR! at request (node:https:366:32)
npm ERR! at Object.get (node:https:412:15)
npm ERR! at C:\Users\am00208\Anaconda3\node_modules\ttfautohint\install.js:1:495
npm ERR! at new Promise ()
npm ERR! at w (C:\Users\am00208\Anaconda3\node_modules\ttfautohint\install.js:1:465)
npm ERR! at C:\Users\am00208\Anaconda3\node_modules\ttfautohint\install.js:1:2987 {
npm ERR! code: 'ERR_INVALID_URL',
npm ERR! input: 'undefined/win32/undefined/ttfautohint.exe'
npm ERR! }
npm ERR! # [ttfautohint] Getting source packages
npm ERR! # [ttfautohint] Extracting
npm ERR! # [ttfautohint] Compiling binaries
npm ERR! node:internal/errors:866
npm ERR! const err = new Error(message);
npm ERR! ^
npm ERR!
npm ERR! Error: Command failed: ./configure --disable-shared --enable-static --prefix="C:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build" --without-bzip2 --without-harfbuzz --without-png --without-zlib CFLAGS="-fPIC -g -O3 -IC:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build/include" CXXFLAGS="-fPIC -g -O3 -IC:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build/include" LDFLAGS="-fPIC -LC:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build/lib -LC:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build/lib64" PKG_CONFIG=" " && make && make install
npm ERR! '.' is not recognized as an internal or external command,
npm ERR! operable program or batch file.
npm ERR!
npm ERR! at ChildProcess.exithandler (node:child_process:422:12)
npm ERR! at ChildProcess.emit (node:events:514:28)
npm ERR! at maybeClose (node:internal/child_process:1105:16)
npm ERR! at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
npm ERR! code: 1,
npm ERR! killed: false,
npm ERR! signal: null,
npm ERR! cmd: './configure --disable-shared --enable-static --prefix="C:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build" --without-bzip2 --without-harfbuzz --without-png --without-zlib CFLAGS="-fPIC -g -O3 -IC:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build/include" CXXFLAGS="-fPIC -g -O3 -IC:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build/include" LDFLAGS="-fPIC -LC:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build/lib -LC:\Users\am00208\AppData\Local\npm-cache\enteocode\ttfautohint\build/lib64" PKG_CONFIG=" " && make && make install'
npm ERR! }
npm ERR!
npm ERR! Node.js v20.9.0

npm ERR! A complete log of this run can be found in: C:\Users\am00208\AppData\Local\npm-cache_logs\2024-02-12T23_18_02_346Z-debug-0.log`

To Reproduce
Type in Windows Terminal, without quotes, 'npm install ttfautohint', and wait until it displays that error.

Expected behavior
The ttfautohint install should proceed just fine.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • npm: 10.1.0
  • Node: 20.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions