create-user doesn't work #3039
Replies: 4 comments 2 replies
-
I have the same problem, did you find a solution? |
Beta Was this translation helpful? Give feedback.
-
I have output like this /app/api # npm run create-user
> @librechat/[email protected] 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 # |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Closing since I've updated the documentation to go over this better: |
Beta Was this translation helpful? Give feedback.
-
My setup is DigitalOcean and docker-compose.
From the configuration manual (https://www.librechat.ai/docs/configuration/authentication):
sudo docker exec -ti LibreChat sh
fails because there's no LibreChat container.I also tried
sudo docker exec -ti LibreChat-API sh
and 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.
Beta Was this translation helpful? Give feedback.
All reactions