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 running cognigy CLI 1.6.0 - missing dependency fs-extra #193

Open
marcuskrahl opened this issue Jan 8, 2025 · 0 comments
Open

Error running cognigy CLI 1.6.0 - missing dependency fs-extra #193

marcuskrahl opened this issue Jan 8, 2025 · 0 comments

Comments

@marcuskrahl
Copy link

When running the version 1.6.0 of the cognigy CLI, the following error is returned:

PS D:\> cognigy
node:internal/modules/cjs/loader:1252
  throw err;
  ^

Error: Cannot find module 'fs-extra'
Require stack:
- C:\ProgramData\nvm\v22.11.0\node_modules\@cognigy\cognigy-cli\build\lib\aiagents.js
- C:\ProgramData\nvm\v22.11.0\node_modules\@cognigy\cognigy-cli\build\commands\clone.js
- C:\ProgramData\nvm\v22.11.0\node_modules\@cognigy\cognigy-cli\build\program\program.js
- C:\ProgramData\nvm\v22.11.0\node_modules\@cognigy\cognigy-cli\build\program\index.js
- C:\ProgramData\nvm\v22.11.0\node_modules\@cognigy\cognigy-cli\build\cognigy.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:\ProgramData\nvm\v22.11.0\node_modules\@cognigy\cognigy-cli\build\lib\aiagents.js:30:25)
    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:\\ProgramData\\nvm\\v22.11.0\\node_modules\\@cognigy\\cognigy-cli\\build\\lib\\aiagents.js',
    'C:\\ProgramData\\nvm\\v22.11.0\\node_modules\\@cognigy\\cognigy-cli\\build\\commands\\clone.js',
    'C:\\ProgramData\\nvm\\v22.11.0\\node_modules\\@cognigy\\cognigy-cli\\build\\program\\program.js',
    'C:\\ProgramData\\nvm\\v22.11.0\\node_modules\\@cognigy\\cognigy-cli\\build\\program\\index.js',
    'C:\\ProgramData\\nvm\\v22.11.0\\node_modules\\@cognigy\\cognigy-cli\\build\\cognigy.js'
  ]
}

The NPM package fs-extra seems to be missing as a dependency in the package.json file.

The CLI works correctly with version 1.5.5

I am using node 22.11.0 via nvm on a Windows 11 machine

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