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

Failed to build docker image: npm ci failed #8920

Open
leventov opened this issue Nov 21, 2019 · 5 comments
Open

Failed to build docker image: npm ci failed #8920

leventov opened this issue Nov 21, 2019 · 5 comments
Labels
Area - Dev For items related to the project itself, like dev docs and checklists, but not CI Development Blocker

Comments

@leventov
Copy link
Member

[ERROR] npm ERR! code E404
[ERROR] npm ERR! 404 Not Found: [email protected]
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR!     /root/.npm/_logs/2019-11-21T13_26_07_538Z-debug.log
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm-install) on project druid-console: Failed to run task: 'npm ci' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

FYI @vogievetsky

@leventov leventov added Development Blocker Area - Dev For items related to the project itself, like dev docs and checklists, but not CI labels Nov 21, 2019
@leventov
Copy link
Member Author

Another run, it failed with

[ERROR] npm ERR! 404 Not Found: [email protected]

@vogievetsky
Copy link
Contributor

Strange that it is not consistent. Is npm having issues?

@leventov
Copy link
Member Author

I think it would be easier to debug if the first step of preparing an image was to build a distribution locally and then just COPY the distribution Jar file in the Dockerfile script.

@leventov
Copy link
Member Author

It would also allow faster turnaround because re-build an image after some changes may be faster than always doing a clean build inside the image's file system.

@FourSpaces
Copy link

I also encountered this problem here, so I uninstalled node and reinstalled it to solve the problem

new version:
node:10.14.2
npm:6.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area - Dev For items related to the project itself, like dev docs and checklists, but not CI Development Blocker
Projects
None yet
Development

No branches or pull requests

3 participants