Install LangChain without Docker

Describe the problem/error/question

Hello!
Please tell me how can I install LangChain using npm commands? I don’t use Docker at all, but use npm, Apache and pm2 on a VPS with Ubuntu 22.04.3 LTS. Is it possible to install LangChain using npm commands taking into account my environment? I read the instructions and could not find this information.
Thank you.

Information on your n8n setup

  • **n8n version: 1.11.1
  • **Database (default: SQLite): SQLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): npm, pm2, Apache (without docker)
  • **Operating system:Ubuntu 22.04.3 LTS

Hey @Faha,

Docker is our preferred installation option for n8n as it reduces a lot of errors. At the moment there is no NPM version of n8n that includes the LangChain nodes it is only available in the ai-beta docker image.

This will eventually make it’s way to the main release but for now Docker or Cloud are the only ways unless you wanted to run the branch from source.

2 Likes

Hello Jon.
Thank you for your feedback.
Are there plans to make an npm version after leaving beta?

Hey @Faha,

I believe that is the plan, Once it is in the main release you would then be able to install using npm.

Hello @Jon ,
Do you know approximately when the main version is planned to be released?
Thank you.

Hey @Faha,

No idea at the moment, I would say it is going to be a few weeks away though.

1 Like

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