question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm ci run failing in docker

See original GitHub issue

Hello,

The action is failing on npm ci run.

2020-10-25T11:19:06.1790805Z npm notice 
2020-10-25T11:19:06.1791266Z npm notice New patch version of npm available! 7.0.3 -> 7.0.5
2020-10-25T11:19:06.1791901Z npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.0.5>
2020-10-25T11:19:06.1792502Z npm notice Run `npm install -g npm@7.0.5` to update!
2020-10-25T11:19:06.1792845Z npm notice 
2020-10-25T11:19:06.1799788Z npm ERR! The `npm ci` command can only install with an existing package-lock.json or
2020-10-25T11:19:06.1800615Z npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
2020-10-25T11:19:06.1801376Z npm ERR! later to generate a package-lock.json file, then try again.
2020-10-25T11:19:06.1884172Z npm ERR! A complete log of this run can be found in:
2020-10-25T11:19:06.1885100Z npm ERR!     /root/.npm/_logs/2020-10-25T11_19_06_180Z-debug.log
2020-10-25T11:19:06.3839692Z The command '/bin/sh -c npm ci --only=production' returned a non-zero code: 1
2020-10-25T11:19:06.3864834Z ##[warning]Docker build failed with exit code 1, back off 3.163 seconds before retry.

Anything i can do to fix it on my end?

TIA, Eli

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
gr2mcommented, Oct 26, 2020

Okay thank you all for letting me know. Likely GitHub changed something, and it’s time to upgrade the the action to the format. I’ll look into it

5reactions
gr2mcommented, Nov 3, 2020

releases are now automated and are continuously pushed to the v1 branch. So you can do

- uses wip/action@v1
Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker build failed at client npm ci · Issue #5764 - GitHub
I am trying to install the current master as it is described in the Readme (install with Docker-Compose). The only command that I...
Read more >
A service is failing to build with the command '/bin/sh -c npm ci'
I have tried restarting the docker-machine and docker clients. docker-machine version 0.16.0, build 702c267f. docker-compose version 1.17.1, ...
Read more >
Docker build fails in the pipeline with npm error
Solved: My docker file which is building successfully local, is as following FROM node : 14.1-alpine AS builder COPY .
Read more >
Phoenix Docker build fails on npm ci - Elixir Forum
Setting up a phoneix project in a container , works fine on the cli Dockerfile FROM hexpm/elixir:1.11.2-erlang-23.1.3-debian-buster-20201012 ...
Read more >
NPM install in Dockerfile fails halfway through. Returns non ...
This process worked just fine as of a week ago and now the 'npm install' in the Dockerfile runs about halfway through fetching...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found