Cannot find module '@langchain/core/tools'

Describe the problem/error/question

windows11,node20. execute npx n8n error
(node:12040) [MODULE_NOT_FOUND] Warning: ModuleLoadError
module: @oclif/[email protected]
task: findCommand (audit)
plugin: n8n
root: C:\Users\nlnlnnn\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n
code: MODULE_NOT_FOUND
message: [MODULE_NOT_FOUND] require failed to load C:\Users\nlnlnnn\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n\dist\commands\audit.js: Cannot find module ‘@langchain/core/tools’
Require stack:

  • C:\Users\nlnlnnn\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n-core\dist\CreateNodeAsTool.js
  • C:\Users\nlnlnnn\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n-core\dist\NodeExecuteFunctions.js
  • C:\Users\nlnlnnn\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n-core\dist\index.js
  • C:\Users\nlnlnnn\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n\dist\config\schema.js
  • C:\Users\nlnlnnn\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n\dist\config\index.js
  • C:\Users\nlnlnnn\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n\dist\security-audit\security-audit.service.js

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hi @xiejiahaonlnl

It’s been a while, is this issue still happening? if so , can you please provide more details so we can help? Please add your workflow and the details we asked on the previous reply. thanks!

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