Bayer-Group / COLID-Setup

The setup repository is part of the Corporate Linked Data Catalog - short: COLID - application. It helps setting up a local environment based on Docker Compose.
https://bayer-group.github.io/COLID-Documentation/
BSD 3-Clause "New" or "Revised" License
15 stars 6 forks source link

Errors when running docker-compose #5

Closed ProbstenHias closed 5 months ago

ProbstenHias commented 1 year ago

I am following the quick start guide and the step where you run docker-compose up gives me the following errors:

------
 > [colid-setup-colid-editor-frontend build-phase 8/8] RUN $(npm bin)/ng build --configuration=docker --build-optimizer=false --output-hashing=all:
#0 0.826 Node.js version v12.22.12 detected.
#0 0.826 The Angular CLI requires a minimum Node.js version of either v14.15, or v16.10.
#0 0.826 
#0 0.826 Please update your Node.js version or visit https://nodejs.org/ for additional instructions.
#0 0.826 
------
failed to solve: executor failed running [/bin/sh -c $(npm bin)/ng build --configuration=$ANGULAR_ENVIRONMENT --build-optimizer=false --output-hashing=all]: exit code: 3

This error probably occurs for all submodules that have Angular CLI as a dependency and uses node:12 in their corresponding Dockerfiles, meaning:

Kind Regards, Matthias

corinabioinformatic commented 7 months ago

Hi @ProbstenHias , I went through all the logs and I think my problem was with the nodejs and npm installation. I am using WSL so I had installed nodejs in windows and not in WSL Ubuntu. What id did was uninstalling nodejs and npm and nvm from Windows and install it from WSL2 terminal. that fixed this issue you commented.