Dependency version issues

I’m new in replit. and I need to setup the dependencies correctly to be able to test the code. Is there a live agent support to help walk through the setup only for 1 time? I can probably handle after that.
for example, I am trying to debug where is the conflict in dependency version. Where can I see the .npm logs, . . . .

Repl link/Link to where the bug appears:https://replit.com/@aliattaran/TemporalDesertedRectangle#package.json

error:
npm ERR! code EOVERRIDE
npm ERR! Override for @langchain/core@^0.1.5 conflicts with direct dependency

npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-01-27T17_26_57_602Z-debug-0.log
{
  "name": "nodejs",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "type": "module",
  "private": true,
  "engines": {
    "node": ">=18"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@types/node": "^18.0.6",
    "axios": "^1.6.5",
    "cheerio": "^1.0.0-rc.12",
    "node-fetch": "^3.2.6",
    "openai": "^4.24.7",
    "node-nlp": "^1.0.0",
    "@langchain/core": "^0.1.5"
  },
  "overrides": {
    "@langchain/core": "0.1.5"
  }
}

Might I ask, does it work if you just remove the overrides block?

No, there is not any live agent support. Other than that, people can help you here, but it’s not a real-time support agent type thing; it’s just other coders who might be able to solve your problem.

3 Likes

yes. thanks so much
I tried a few things. this revised package seems to fixed it.

{
  "name": "nodejs",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "type": "module",
  "private": true,
  "engines": {
    "node": ">=18"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@langchain/core": "^0.1.5",
    "@langchain/openai": "^0.0.13",
    "@types/node": "^18.0.6",
    "axios": "^1.6.5",
    "cheerio": "^1.0.0-rc.12",
    "langchain": "^0.1.9",
    "node-fetch": "^3.2.6",
    "node-nlp": "^1.0.0",
    "openai": "^4.24.7"
  }
}
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.