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

run command ai-commit gets exception -> Error: Cannot find module 'call-bind' #17

Open
douglaslambertinny opened this issue Oct 11, 2023 · 0 comments

Comments

@douglaslambertinny
Copy link

The npm install -g ai-commit command did not install the 'call-bind' module. Manual installation required npm install -g call-bind. After installing call-bind it works.

My config:
Apple M1 - 8 GB - macOS Sonoma - Versão 14.0 (23A344)

Run command ai-commit -> exception ->

Details

node:internal/modules/cjs/loader:1048
  const err = new Error(message);
              ^
Error: Cannot find module 'call-bind'
Require stack:
- /opt/homebrew/lib/node_modules/ai-commit/node_modules/@ljharb/through/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/opt/homebrew/lib/node_modules/ai-commit/node_modules/@ljharb/through/index.js:4:16)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at cjsLoader (node:internal/modules/esm/translators:284:17) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/homebrew/lib/node_modules/ai-commit/node_modules/@ljharb/through/index.js'
  ]
}
Node.js v20.8.0

Obs: I tested it on Linux and it works without errors.

Repository owner deleted a comment Jan 3, 2024
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

1 participant