mapbox / mapbox/node-fontnik

Error:

Open
#181 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
248
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hello, I am trying to create glyphs using the following command.
```
./bin/build-glyphs fonts/LobsterTwo-Regular.ttf glyphs/lobstar
```

It is returning the following error

```
module.js:478
throw err;
^

Error: Cannot find module './lib/binding/fontnik.node'
at Function.Module._resolveFilename (module.js:476:15)
at Function.Module._load (module.js:424:25)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/opt/tools/node-fontnik/index.js:1:80)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported command, ./bin/build-glyphs fonts/LobsterTwo-Regular.ttf glyphs/lobstar. Inspect bin/build-glyphs and the require path shown in node-fontnik/index.js to determine why lib/binding/fontnik.node is unavailable. Done means the command runs without the reported missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.