create-user doesn't work #3039
Closed
alexlyzhov
started this conversation in
Help Wanted
Replies: 4 comments 3 replies
|
I have the same problem, did you find a solution? |
1 reply
|
I have output like this /app/api # npm run create-user
> @librechat/backend@v0.7.5-rc1 create-user
> node ./create-user.js
node:internal/modules/cjs/loader:1228
throw err;
^
Error: Cannot find module '/app/api/create-user.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.17.0
npm error Lifecycle script `create-user` failed with error:
npm error code 1
npm error path /app/api
npm error workspace @librechat/backend@v0.7.5-rc1
npm error location /app/api
npm error command failed
npm error command sh -c node ./create-user.js
/app/api # |
0 replies
|
I just tried it, it's working. This is assuming you are using the
To combine these steps into a single command that you can run from your host machine: This command will exec into the container, change to the parent directory, and run the create-user script in one go. |
1 reply
|
Closing since I've updated the documentation to go over this better: |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
My setup is DigitalOcean and docker-compose.
From the configuration manual (https://www.librechat.ai/docs/configuration/authentication):
sudo docker exec -ti LibreChat shfails because there's no LibreChat container.I also tried
sudo docker exec -ti LibreChat-API shand then runnpm run create-user, but it doesn't provide an output regardless of whether I supply the arguments or not. This is how it looks:And after that there's no output.
All reactions