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

Error after update: "Cannot find module './rag'" #95

Open
the-eduardo opened this issue Dec 12, 2024 · 1 comment
Open

Error after update: "Cannot find module './rag'" #95

the-eduardo opened this issue Dec 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@the-eduardo
Copy link

Describe the bug
After updating it, something stopped working.

Desktop (please complete the following information):

  • OS: Windows 11
  • Terminnal : Powershell (Windows Terminal)
$ npm uninstall -g terminalgpt
removed 291 packages in 2s

$ npm cache clean --force
npm warn using --force Recommended protections disabled.

$ npm install -g terminalgpt
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated @types/[email protected]: This is a stub types definition. marked provides its own type definitions, so you do not need this installed.

added 291 packages in 28s

56 packages are looking for funding
  run `npm fund` for details
$ tgpt
node:internal/modules/cjs/loader:1252
  throw err;
  ^

Error: Cannot find module './rag'
Require stack:
- C:\Users\[...]\AppData\Roaming\npm\node_modules\terminalgpt\lib\index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:141:16)
    at Object.<anonymous> (C:\Users\[...]\AppData\Roaming\npm\node_modules\terminalgpt\lib\index.js:49:31)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Object..js (node:internal/modules/cjs/loader:1689:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\[...]\\AppData\\Roaming\\npm\\node_modules\\terminalgpt\\lib\\index.js'
  ]
}

Node.js v22.11.0

$ npm -version
10.9.2
@the-eduardo the-eduardo added the bug Something isn't working label Dec 12, 2024
@the-eduardo
Copy link
Author

Oh it's the same error as the mentioned on Ubuntu: #94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant