[GH-ISSUE #62] Tool is having dependency issues #26

Closed
opened 2026-03-02 02:53:06 +03:00 by kerem · 3 comments
Owner

Originally created by @gtkacz on GitHub (Jul 17, 2025).
Original GitHub issue: https://github.com/artiebits/fake-git-history/issues/62

Describe the bug
Can't run the tool due to dependency resolving

To Reproduce
Steps to reproduce the behavior:

  1. Clone repo
  2. Use node version v23.9.0 and npx version 10.9.2
  3. Run npx fake-git-history --preview

Expected behavior
The tool to generate commit preview

Stacktrace

node:internal/modules/cjs/loader:1408
  throw err;
  ^

Error: Cannot find module 'meow'
Require stack:
- /home/gtkacz/docs/personal/fake-git-history/src/cli.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1405:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
    at Function._load (node:internal/modules/cjs/loader:1215:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1491:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (/home/gtkacz/docs/personal/fake-git-history/src/cli.js:3:14)
    at Module._compile (node:internal/modules/cjs/loader:1734:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/gtkacz/docs/personal/fake-git-history/src/cli.js' ]
}

Node.js v23.9.0

Additional context
Add any other context about the problem here.

Originally created by @gtkacz on GitHub (Jul 17, 2025). Original GitHub issue: https://github.com/artiebits/fake-git-history/issues/62 **Describe the bug** Can't run the tool due to dependency resolving **To Reproduce** Steps to reproduce the behavior: 1. Clone repo 2. Use node version v23.9.0 and npx version 10.9.2 3. Run `npx fake-git-history --preview` **Expected behavior** The tool to generate commit preview **Stacktrace** ``` node:internal/modules/cjs/loader:1408 throw err; ^ Error: Cannot find module 'meow' Require stack: - /home/gtkacz/docs/personal/fake-git-history/src/cli.js at Function._resolveFilename (node:internal/modules/cjs/loader:1405:15) at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19) at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22) at Function._load (node:internal/modules/cjs/loader:1215:37) at TracingChannel.traceSync (node:diagnostics_channel:322:14) at wrapModuleLoad (node:internal/modules/cjs/loader:235:24) at Module.require (node:internal/modules/cjs/loader:1491:12) at require (node:internal/modules/helpers:135:16) at Object.<anonymous> (/home/gtkacz/docs/personal/fake-git-history/src/cli.js:3:14) at Module._compile (node:internal/modules/cjs/loader:1734:14) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/gtkacz/docs/personal/fake-git-history/src/cli.js' ] } Node.js v23.9.0 ``` **Additional context** Add any other context about the problem here.
kerem closed this issue 2026-03-02 02:53:06 +03:00
Author
Owner

@sht commented on GitHub (Jul 20, 2025):

It will work if you stick meow v8

By default npm install installs the latest version of meow which doesn't support the defined function because meow version is not pinned.

Fix by:

  • npm uninstall meow
  • npm install meow@8

and it will work 🍺

<!-- gh-comment-id:3094850326 --> @sht commented on GitHub (Jul 20, 2025): It will work if you stick `meow v8` By default `npm install` installs the latest version of `meow` which doesn't support the defined function because `meow` version is not pinned. Fix by: - npm uninstall meow - npm install meow@8 and it will work 🍺
Author
Owner

@gtkacz commented on GitHub (Jul 21, 2025):

@sht the project's package.json file specifies meow 13.2.0 though?

<!-- gh-comment-id:3095042748 --> @gtkacz commented on GitHub (Jul 21, 2025): @sht the project's package.json file specifies meow 13.2.0 though?
Author
Owner

@artiebits commented on GitHub (Sep 27, 2025):

Apologies for the delay in response. You don’t need to clone this repository and run npx fake-git-history inside it. Simply run npx fake-git-history in your terminal, but outside of any npm project.

<!-- gh-comment-id:3341396854 --> @artiebits commented on GitHub (Sep 27, 2025): Apologies for the delay in response. You don’t need to clone this repository and run `npx fake-git-history` inside it. Simply run `npx fake-git-history` in your terminal, but outside of any npm project.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-git-history#26
No description provided.