docker-compose up -d command error in npm install step
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 15/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- angular, docker, docker-compose, javascript, node.js
- Domaine
- build-system, devops
Piste de recherche
No repository files, tests, or entry points are identified; the report concerns the user's own Dockerfiles and docker-compose.yaml. Start by inspecting the frontend package dependencies and the Dockerfile step running npm install, then reproduce docker-compose up -d. Done means the frontend service builds without the reported Angular peer-dependency resolution error.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Trying to create docker image and container for my MEAN project, but error in npm install step.
Two Dockerfile created for my MEAN app, one for frontend and second for backend.
Also create docker-compose.yaml file with version and services for frontend, backend and mongo
After doing all this when I runn command "docker-compose up -d"
Building front
Step 1/8 : FROM node:16
---> 5db4e32c87c8
Step 2/8 : RUN mkdir -p /app
---> Running in 267ff76d3067
---> cf4870525fc9
Removing intermediate container 267ff76d3067
Step 3/8 : WORKDIR /app
---> 8de9146a1b9d
Removing intermediate container fe353793a0e5
Step 4/8 : COPY ./package*.json ./
---> 82b4f6a50392
Removing intermediate container ec44b06e1a7d
Step 5/8 : RUN npm install
---> Running in 0fc3770b4b87
npm notice
npm notice New major version of npm available! 8.19.3 -> 9.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.2.0
npm notice Run npm install -g npm@9.2.0 to update!
npm notice
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @angular/compiler-cli@14.2.12
npm ERR! Found: @angular/compiler@14.2.11
npm ERR! node_modules/@angular/compiler
npm ERR! @angular/compiler@"^14.1.0" from the root project
npm ERR! peer @angular/compiler@"14.2.11" from @angular/platform-browser-dynamic@14.2.11
npm ERR! node_modules/@angular/platform-browser-dynamic
npm ERR! @angular/platform-browser-dynamic@"^14.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler@"14.2.12" from @angular/compiler-cli@14.2.12
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"^14.1.0" from the root project
npm ERR! peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.2.10
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^14.1.2" from the root project
npm ERR! 2 more (@angular/localize, @ngtools/webpack)
npm ERR!
npm ERR! Conflicting peer dependency: @angular/compiler@14.2.12
npm ERR! node_modules/@angular/compiler
npm ERR! peer @angular/compiler@"14.2.12" from @angular/compiler-cli@14.2.12
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"^14.1.0" from the root project
npm ERR! peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.2.10
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^14.1.2" from the root project
npm ERR! 2 more (@angular/localize, @ngtools/webpack)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-12-19T17_19_19_391Z-debug-0.log
ERROR: Service 'front' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1
- Langage dominant
- JavaScript
- Étoiles
- 1.4k
- Forks
- 185
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de motdotla/node-lambda
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
motdotla/node-lambda#840 · 1 commentaire ·
-
Migration to AWS SDK v3 Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
motdotla/node-lambda#641 · 6 commentaires · 2 réactions ·
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
motdotla/node-lambda#544 · 1 réaction ·
-
question
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
motdotla/node-lambda#537 · 2 commentaires · 1 réaction ·
-
Lambda@edge feature request. Ouverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
motdotla/node-lambda#531 ·
Toutes les issues de motdotla/node-lambda
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
-
Daemon passes --experimental-wasm-jspi unconditionally on Node >= 24; Node 26 rejects the flag Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Automattic/studio#4908 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
sugarlabs/musicblocks#8847 ·