Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose fail with npm error #191

Open
bifxcore opened this issue Jan 9, 2025 · 1 comment
Open

Docker compose fail with npm error #191

bifxcore opened this issue Jan 9, 2025 · 1 comment

Comments

@bifxcore
Copy link

bifxcore commented Jan 9, 2025

running
docker compose up
on MacOS Sonoma 14.7.1

=> ERROR [front-end 4/4] RUN npm install                                                                                                                           71.2s
------                                                                                                                                                                    
 > [front-end 4/4] RUN npm install:
71.17 npm error Exit handler never called!
71.17 npm error This is an error with npm itself. Please report this error at:
71.17 npm error   <https://github.com/npm/cli/issues>
71.17 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-01-09T20_05_33_024Z-debug-0.log
------
WARN[0001] current commit information was not captured by the build  error="failed to read current commit information with git rev-parse --is-inside-work-tree"
failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1


/root directory does not exist.
Searched globally for file 2025-01-09T20_05_33_024Z-debug-0.log and couldn't find it.

Local npm version: 10.8.2
I cleared the npm cache:
npm cache clean --force

Still getting the "npm error Exit handler never called!" error.

@bifxcore
Copy link
Author

I downgraded node from version 22.6.0 to 22.5.1 ( nodejs/node#53902 (comment) ) and now I get the error:

 => ERROR [front-end 4/4] RUN npm install                                                                                                                         71.1s
------
 > [front-end 4/4] RUN npm install:
71.01 npm error Exit handler never called!
71.01 npm error This is an error with npm itself. Please report this error at:
71.01 npm error   
71.01 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-01-23T18_43_42_667Z-debug-0.log
[+] Running 4/5
 ✔ Service pdf_bot    Built                                                                                                                                        1.9s 
 ✔ Service api        Built                                                                                                                                        1.9s 
 ✔ Service bot        Built                                                                                                                                        1.9s 
 ✔ Service loader     Built                                                                                                                                        1.9s 
 ⠴ Service front-end  Building                                                                                                                                    72.5s 
failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1

I also tried to:

  • remove ~/git/genai-stack/front-end/package-lock.json => FAIL, install goes into an endless loop
  • export NODE_OPTIONS=--no-network-family-autoselection => FAIL with original error "npm error Exit handler never called!"

Has anybody managed to install the genai stack on an M1 Mac?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant