thrasher-corp / gocryptotrader

A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compose up error: [build 4/7] npm ERR! cb() never called!

shojaeix opened this issue · comments

Up and running error

Context

Im trying to run the project using docker-compose up and there is an error in docker build step [4/7]

  • Operating System: Win 11 x64

  • GoCryptoTrader version: last commit 4851e94eba12e6cb57cdf6ead9ee60cec3934caa

  • Docker-compose version 1.29.2, build 5becea4c

  • Docker version 20.10.7, build f0df350

Failure Information (for bugs)

[build 4/7] RUN npm i  && mkdir /app  && cp -R ./node_modules /app:
#14 109.3 npm ERR! cb() never called!
#14 109.3
#14 109.3 npm ERR! This is an error with npm itself. Please report this error at:
#14 109.3 npm ERR!     <https://npm.community>
#14 109.4
#14 109.4 npm ERR! A complete log of this run can be found in:
#14 109.4 npm ERR!     /root/.npm/_logs/2021-08-26T12_33_10_067Z-debug.log
------
executor failed running [/bin/sh -c npm i  && mkdir /app  && cp -R ./node_modules /app]: exit code: 1
ERROR: Service 'web' failed to build : Build failed

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Fresh clone of branch master
  2. docker-compose up

Failure Logs

There is no log file because the project never runned before.

I tried to execute the below command before step 4(base on this answer https://stackoverflow.com/a/15483897/8712494), but still the same result

$ sudo npm cache verify

Solution:
npm update