Trying to do a local build of the api service and getting "sh: cross-env: not found" errors #4466
Replies: 2 comments
-
Had to completely do full delete and re-install of docker, docker compose, etc. No more |
Beta Was this translation helpful? Give feedback.
0 replies
-
i met the same problem, have you solved the problem? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to do a local build of the api service.
Below is how I defined my
docker-compose.override.yml
The only changes I made to the repo were adding
.env
,docker-compose.override.yml
, andlibrechat.yml
(which is not even used in context in this deployment.Below is the error I get when running
docker compose up --build
.There are no other errors aside from the one above.
I've ran
npm run update:docker
and still no luck. I've also tried to deploy while pruning all images, volumes, containers etc. And build with--no-cache
.Not sure what went wrong. I tried to edit the
package.json
at one point, but reverted it to the original version since I want to try to keep as minimal changes to the repo to test out the local build.Let me know if any of you have any questions on my steps or need me to run certain commands to debug. Any help is much appreciated.
Additional context
The reason I am trying to do a local build is to test some modifications I made to
/api/server/services/Endpoints/custom/initializeClient.js
. However, for the deployment steps above, I did not change/initializeClient.js
since I'm trying to figure out to the root cause of the deployment error above.Beta Was this translation helpful? Give feedback.
All reactions