multiparty / web-mpc

Platform for deploying web-based privacy-preserving data surveys using secure multi-party computation (MPC).
https://www.multiparty.org
MIT License
54 stars 22 forks source link

Unable to run with a docker container and docker compose #207

Open shijiezhou1 opened 1 year ago

shijiezhou1 commented 1 year ago

Hi all,

I am getting this issue when trying to install package. can some one help to check?

=> CACHED [2/6] RUN apt-get update && apt-get install -y netcat 0.0s => CACHED [3/6] WORKDIR /usr/src/app 0.0s => CACHED [4/6] COPY . . 0.0s => CACHED [5/6] RUN npm ci 0.0s => ERROR [6/6] RUN cd jiff && npm ci 0.4s


[6/6] RUN cd jiff && npm ci:

0 0.345 npm ERR! code EUSAGE

0 0.347 npm ERR!

0 0.347 npm ERR! The npm ci command can only install with an existing package-lock.json or

0 0.347 npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or

0 0.347 npm ERR! later to generate a package-lock.json file, then try again.

0 0.347 npm ERR!

0 0.347 npm ERR! Clean install a project

0 0.347 npm ERR!

0 0.347 npm ERR! Usage:

0 0.347 npm ERR! npm ci

0 0.347 npm ERR!

0 0.347 npm ERR! Options:

0 0.347 npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]

0 0.347 npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]

0 0.347 npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]

0 0.348 npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]

0 0.348 npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]

0 0.348 npm ERR! [-w|--workspace [-w|--workspace ...]]

0 0.348 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]

0 0.348 npm ERR!

0 0.348 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean

0 0.348 npm ERR!

0 0.348 npm ERR! Run "npm help ci" for more info

0 0.348

0 0.348 npm ERR! A complete log of this run can be found in:

0 0.348 npm ERR! /root/.npm/_logs/2023-03-17T01_24_20_906Z-debug-0.log


failed to solve: executor failed running [/bin/sh -c cd jiff && npm ci]: exit code: 1

apae89 commented 1 year ago

Hi, I was running into the same issue. My problem was that I forgot to include the referenced repository jiff while cloning this repo. If the same applies to you, use: git clone --recurse-submodules -j8 <repo url>