docker-compose up -d command error in npm install step
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- angular, docker, docker-compose, javascript, node.js
- 領域
- build-system, devops
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- JavaScript
- スター
- 1.4k
- フォーク
- 185
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
motdotla/node-lambda のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
motdotla/node-lambda#840 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
motdotla/node-lambda#641 · コメント 6 件 · リアクション 2 件 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
motdotla/node-lambda#544 · リアクション 1 件 ·
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
motdotla/node-lambda#537 · コメント 2 件 · リアクション 1 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
motdotla/node-lambda#531 ·
motdotla/node-lambda の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
avniproject/avni-client#2135 ·
-
automated broken-link
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bevyengine/bevy-website#2595 ·