Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shijiezhou1 opened this issue Mar 17, 2023 · 1 comment · May be fixed by #209
Open

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

shijiezhou1 opened this issue Mar 17, 2023 · 1 comment · May be fixed by #209

Comments

@shijiezhou1
Copy link

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
Copy link

apae89 commented Mar 23, 2023

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>

@AbhinavMir AbhinavMir linked a pull request Nov 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants