Open joaoreberti opened 2 years ago
Momentarily solved with RUN npm install --save --legacy-peer-deps to dockerfile
RUN npm install --save --legacy-peer-deps
Building backend Sending build context to Docker daemon 573MB Step 1/6 : FROM node:15.4 ---> 6f7f341ab8b8 Step 2/6 : WORKDIR /app ---> Using cache ---> ebc0dc9d5b9e Step 3/6 : COPY package.json . ---> Using cache ---> f646795aa2f2 Step 4/6 : RUN npm install --force ---> Running in b96967663a6e npm WARN using --force Recommended protections disabled. npm notice npm notice New major version of npm available! 7.0.15 -> 8.1.4 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.1.4> npm notice Run `npm install -g npm@8.1.4` to update! npm notice npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: acorn@7.4.1 npm ERR! node_modules/acorn npm ERR! acorn@"^7.4.0" from espree@7.3.1 npm ERR! node_modules/espree npm ERR! espree@"^7.3.1" from eslint@7.32.0 npm ERR! node_modules/eslint npm ERR! dev eslint@"^7.12.1" from the root project npm ERR! 6 more (@typescript-eslint/eslint-plugin, ...) npm ERR! espree@"^7.3.0" from @eslint/eslintrc@0.4.3 npm ERR! node_modules/@eslint/eslintrc npm ERR! @eslint/eslintrc@"^0.4.3" from eslint@7.32.0 npm ERR! node_modules/eslint npm ERR! dev eslint@"^7.12.1" from the root project npm ERR! 6 more (@typescript-eslint/eslint-plugin, ...) npm ERR! peer acorn@"^6.0.0 || ^7.0.0 || ^8.0.0" from acorn-jsx@5.3.2 npm ERR! node_modules/acorn-jsx npm ERR! acorn-jsx@"^5.3.1" from espree@7.3.1 npm ERR! node_modules/espree npm ERR! espree@"^7.3.1" from eslint@7.32.0 npm ERR! node_modules/eslint npm ERR! dev eslint@"^7.12.1" from the root project npm ERR! 6 more (@typescript-eslint/eslint-plugin, ...) npm ERR! 1 more (@eslint/eslintrc) npm ERR! 2 more (acorn-globals, is-expression) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional acorn@"^8.5.0" from terser@5.10.0 npm ERR! node_modules/terser npm ERR! terser@"^5.7.2" from terser-webpack-plugin@5.2.5 npm ERR! node_modules/terser-webpack-plugin npm ERR! terser-webpack-plugin@"^5.1.1" from webpack@5.28.0 npm ERR! node_modules/@nestjs/cli/node_modules/webpack npm ERR! webpack@"5.28.0" from @nestjs/cli@7.6.0 npm ERR! node_modules/@nestjs/cli npm ERR! 1 more (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/2021-11-21T09_52_27_161Z-debug.log The command '/bin/sh -c npm install --force' returned a non-zero code: 1 ERROR: Service 'backend' failed to build : Build failed
updating node version to 16.3.0 also works fine
Momentarily solved with
RUN npm install --save --legacy-peer-deps
to dockerfile