[GH-ISSUE #783] [DOCS]: AnythingLLM bare metal #454

Closed
opened 2026-02-22 18:19:34 -05:00 by yindo · 6 comments
Owner

Originally created by @moferreira on GitHub (Feb 22, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/783

Description

I am trying to follow the instructions and install AnythingLLM on a bare metal server. I have followed the instructions on the "Run AnythingLLM in production without Docker". However, when I git the project the directory does not have any setup file that I can run yarn to set the system up. Am I missing something or the bare metal installation is broken?

Originally created by @moferreira on GitHub (Feb 22, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/783 ### Description I am trying to follow the instructions and install AnythingLLM on a bare metal server. I have followed the instructions on the "Run AnythingLLM in production without Docker". However, when I git the project the directory does not have any setup file that I can run yarn to set the system up. Am I missing something or the bare metal installation is broken?
yindo added the documentation label 2026-02-22 18:19:34 -05:00
yindo closed this issue 2026-02-22 18:19:34 -05:00
Author
Owner

@timothycarambat commented on GitHub (Feb 22, 2024):

in the root you should just need to run yarn setup - that will install everything and create the example ENV files

https://github.com/Mintplex-Labs/anything-llm/blob/c87ef5b67447e0e3672d272e9a55be89c8a3ca4a/package.json#L14

@timothycarambat commented on GitHub (Feb 22, 2024): in the root you should just need to run `yarn setup` - that will install everything and create the example ENV files https://github.com/Mintplex-Labs/anything-llm/blob/c87ef5b67447e0e3672d272e9a55be89c8a3ca4a/package.json#L14
Author
Owner

@moferreira commented on GitHub (Feb 22, 2024):

Ok, I have tried your direction. I did:
mo@mo-KVM:/anything-llm/server$ ls
endpoints jsconfig.json nodemon.json prisma swagger yarn.lock index.js models package.json storage utils
mo@mo-KVM:
/anything-llm/server$ yarn
00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.

I got Yarn installed by doing:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt install yarn -y

What am I missing? My guess is that my Yarn is not the one the project is expecting to have.
m

@moferreira commented on GitHub (Feb 22, 2024): Ok, I have tried your direction. I did: mo@mo-KVM:~/anything-llm/server$ ls endpoints jsconfig.json nodemon.json prisma swagger yarn.lock index.js models package.json storage utils mo@mo-KVM:~/anything-llm/server$ yarn 00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one. I got Yarn installed by doing: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt install yarn -y What am I missing? My guess is that my Yarn is not the one the project is expecting to have. m
Author
Owner

@moferreira commented on GitHub (Feb 22, 2024):

When we git the project, the anything-llm directory does not have a file so called "setup".

@moferreira commented on GitHub (Feb 22, 2024): When we git the project, the anything-llm directory does not have a file so called "setup".
Author
Owner

@timothycarambat commented on GitHub (Feb 22, 2024):

yarn by itself installs all packages in the relative package.json for the folder you are in. If yarn by itself is not working then the command yarn install does the same thing.

setup is not a file it is a script in the root package.json - as I linked above. So you would run that by being in the root and running yarn setup or yarn run setup.

@timothycarambat commented on GitHub (Feb 22, 2024): `yarn` by itself installs all packages in the relative `package.json` for the folder you are in. If `yarn` by itself is not working then the command `yarn install` does the same thing. `setup` is not a file it is a script in the root `package.json` - as I linked above. So you would run that by being in the root and running `yarn setup` or `yarn run setup`.
Author
Owner

@moferreira commented on GitHub (Feb 22, 2024):

Well, it did not solve my problem as I run "yarn setup" (as it says on the documentation) or "yarn install" or yarn "package.json", etc., and none of these commands do create/install it. Maybe because I am not a programmer and don´t know how to use yarn. However, I am just following the instruction on the site and it does not work.

I am just trying to run it on a bare metal trying to figure out how I can go back to older versions of AnythingLLM. If I could install on a bare metal from git, then I could use an older version of it as I want.

Thank you anyway.

@moferreira commented on GitHub (Feb 22, 2024): Well, it did not solve my problem as I run "yarn setup" (as it says on the documentation) or "yarn install" or yarn "package.json", etc., and none of these commands do create/install it. Maybe because I am not a programmer and don´t know how to use yarn. However, I am just following the instruction on the site and it does not work. I am just trying to run it on a bare metal trying to figure out how I can go back to older versions of AnythingLLM. If I could install on a bare metal from git, then I could use an older version of it as I want. Thank you anyway.
Author
Owner

@erik-sv commented on GitHub (Mar 7, 2024):

@moferreira Here is what I did after installing Yarn on Ubuntu (seen here, similar to what you did):

sudo npm install -g n to install NPM (node package manager)
sudo n 18.12.1 (Installs node version 18.12.1, works here as of this post)

Make sure you are in the anything-llm folder then run
yarn setup

Hopefully should work for you as well.

@erik-sv commented on GitHub (Mar 7, 2024): @moferreira Here is what I did after installing Yarn on Ubuntu [(seen here, similar to what you did)](https://github.com/yarnpkg/yarn/issues/2821#issuecomment-284181365): `sudo npm install -g n` to install NPM (node package manager) `sudo n 18.12.1` (Installs node version 18.12.1, works here as of this post) Make sure you are in the anything-llm folder then run `yarn setup` Hopefully should work for you as well.
yindo changed title from [DOCS]: AnythingLLM bare metal to [GH-ISSUE #783] [DOCS]: AnythingLLM bare metal 2026-06-05 14:35:24 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#454