Langgraph CLI Dev Module Errors #334

Closed
opened 2026-02-15 18:15:59 -05:00 by yindo · 1 comment
Owner

Originally created by @AndonMitev on GitHub (Aug 7, 2025).

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangGraph.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangGraph.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package).

Example Code

"langgraph-dev": "npx @langchain/langgraph-cli dev"

Error Message and Stack Trace (if applicable)

This in-memory server is designed for development and testing.
For production use, please use LangGraph Cloud.

node:internal/modules/run_main:122
triggerUncaughtException(
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@langchain/core' imported from /Users/andonmitev/.nvm/versions/node/v22.13.1/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/stream.mjs

Description

So we;ve bumped to:

langgraphjs -V

0.0.57+js

but then when trying to execute: langgraphjs dev or npx @langchain/langgraph-cli dev fails with:

node:internal/modules/run_main:122
    triggerUncaughtException(
    ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@langchain/core' imported from /Users/andonmitev/.nvm/versions/node/v22.13.1/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/stream.mjs

System Info

macos m1

Originally created by @AndonMitev on GitHub (Aug 7, 2025). ### Checked other resources - [x] I added a very descriptive title to this issue. - [x] I searched the LangGraph.js documentation with the integrated search. - [x] I used the GitHub search to find a similar question and didn't find it. - [x] I am sure that this is a bug in LangGraph.js rather than my code. - [x] The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package). ### Example Code "langgraph-dev": "npx @langchain/langgraph-cli dev" ### Error Message and Stack Trace (if applicable) - 🚀 API: http://localhost:2024 - 🎨 Studio UI: https://smith.langchain.com/studio?baseUrl=http://localhost:2024 This in-memory server is designed for development and testing. For production use, please use LangGraph Cloud. node:internal/modules/run_main:122 triggerUncaughtException( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@langchain/core' imported from /Users/andonmitev/.nvm/versions/node/v22.13.1/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/stream.mjs ### Description So we;ve bumped to: ``` langgraphjs -V 0.0.57+js ``` but then when trying to execute: langgraphjs dev or npx @langchain/langgraph-cli dev fails with: ``` node:internal/modules/run_main:122 triggerUncaughtException( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@langchain/core' imported from /Users/andonmitev/.nvm/versions/node/v22.13.1/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/stream.mjs ``` ### System Info macos m1
yindo closed this issue 2026-02-15 18:15:59 -05:00
Author
Owner

@dqbd commented on GitHub (Aug 8, 2025):

Hello! Make sure to add @langchain/core as your dependency, since @langchainúcore is a peer dependency.

@dqbd commented on GitHub (Aug 8, 2025): Hello! Make sure to add `@langchain/core` as your dependency, since `@langchainúcore` is a peer dependency.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#334