Subject: Error: “Unrecognized node type: @n8n/n8n-nodes-langchain.toolWebScraper” with Docker Install
Hello n8n Community,
I’m running into an issue with a specific node from the LangChain community package and would appreciate some help.
The Problem
When I try to execute a workflow that uses the LangChain Web Scraper tool, the execution fails with the following error:
Unrecognized node type: @n8n/n8n-nodes-langchain.toolWebScraper
The strange thing is that other nodes from the @n8n/n8n-nodes-langchain
package, like the LLM Chain
and LangChain Agent
, seem to work correctly. The issue is specific to the toolWebScraper
node.
My Environment & Setup
I am running n8n via Docker and have installed the community nodes by building a custom image.
- n8n Version:
[YOUR_N8N_VERSION]
(Please replace this with your version, e.g., 1.45.1) - Installation Method: Docker with
docker-compose
.
Here are my configuration files:
Dockerfile
FROM n8nio/n8n:[YOUR_N8N_VERSION]
USER root
RUN npm install @n8n/n8n-nodes-langchain
USER node
docker-compose.yml
(relevant service)
services:
n8n:
build: .
restart: always
ports:
- "5678:5678"
environment:
# My other environment variables are here
volumes:
- n8n_data:/home/node/.n8n
What I’ve Tried
- Rebuilding the Docker image from scratch using
docker-compose up --build -d
. - Stopping and restarting the containers with
docker-compose down
anddocker-compose up -d
. - Confirming that other LangChain nodes are available in the UI and work in other workflows.
Minimal Workflow to Reproduce the Error
Here is the JSON for a simple workflow that triggers the error. It just contains a Start node and the Web Scraper tool.
Click to see workflow JSON
My Question
Am I missing a specific dependency for the toolWebScraper
node that needs to be installed separately? Or could there be an issue with my Docker setup that only affects this particular node? It seems odd that the rest of the package works fine.
Any advice or insight would be greatly appreciated!
Thank you.