OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Build fails with "Failed to run task: 'npm install' failed"

Open mithmatt opened this issue 5 years ago • 2 comments

2021-10-18T07:24:54.8492939Z [INFO] npm WARN The package @testing-library/react is included as both a dev and production dependency.
2021-10-18T07:24:54.8495571Z [INFO] npm WARN The package @types/react is included as both a dev and production dependency.
2021-10-18T07:24:54.8499389Z [INFO] npm WARN The package @types/react-dom is included as both a dev and production dependency.
2021-10-18T07:24:54.8500653Z [INFO] npm WARN The package eslint-loader is included as both a dev and production dependency.
2021-10-18T07:24:54.8501805Z [INFO] npm WARN The package eslint-plugin-import is included as both a dev and production dependency.
2021-10-18T07:24:54.8503061Z [INFO] npm WARN The package eslint-plugin-jsx-a11y is included as both a dev and production dependency.
2021-10-18T07:24:54.8504529Z [INFO] npm WARN The package eslint-plugin-react is included as both a dev and production dependency.
2021-10-18T07:24:54.8505802Z [INFO] npm WARN The package eslint-plugin-react-hooks is included as both a dev and production dependency.
2021-10-18T07:24:54.8506535Z [INFO] 
2021-10-18T07:24:54.8568230Z [INFO] npm ERR! code EINTEGRITY
2021-10-18T07:24:54.8570675Z [INFO] npm ERR! Verification failed while extracting react-tutorial@https://github.com/deuex-solutions/react-tutorial/tarball/master:
2021-10-18T07:24:54.8572574Z [INFO] npm ERR! Verification failed while extracting react-tutorial@https://github.com/deuex-solutions/react-tutorial/tarball/master:
2021-10-18T07:24:54.8577445Z [INFO] npm ERR! sha512-zuCdUOXiUstfSE1cZq4+yk8/jpkjKUholNRd2bhw55SxoF/32yNUtU9JbiLxvkCUcdiiggZJwuW7Evpljmu0AQ== integrity checksum failed when using sha512: wanted sha512-zuCdUOXiUstfSE1cZq4+yk8/jpkjKUholNRd2bhw55SxoF/32yNUtU9JbiLxvkCUcdiiggZJwuW7Evpljmu0AQ== but got sha512-PVHe43HCsmOsCdLIFBtW3tp7xlh2JmaOH871dXjMkycWTSvy8LW10OwkvEL2BzDvn8SERwdTblHHcBvzeg8Hwg==. (142659 bytes)
2021-10-18T07:24:54.9934570Z [INFO] 
2021-10-18T07:24:54.9935104Z [INFO] npm ERR! A complete log of this run can be found in:
2021-10-18T07:24:54.9936272Z [INFO] npm ERR!     /home/runner/.npm/_logs/2021-10-18T07_24_54_879Z-debug.log
2021-10-18T07:24:55.0117842Z [INFO] ------------------------------------------------------------------------
2021-10-18T07:24:55.0119176Z [INFO] Reactor Summary for catalog 0.6.0-SNAPSHOT:
2021-10-18T07:24:55.0119784Z [INFO] 
2021-10-18T07:24:55.0120824Z [INFO] catalog ............................................ SUCCESS [  0.236 s]
2021-10-18T07:24:55.0121502Z [INFO] common ............................................. SUCCESS [ 14.486 s]
2021-10-18T07:24:55.0122509Z [INFO] catalog-rest-service ............................... FAILURE [03:59 min]
2021-10-18T07:24:55.0123243Z [INFO] Catalog Distribution ............................... SKIPPED
2021-10-18T07:24:55.0124104Z [INFO] ------------------------------------------------------------------------
2021-10-18T07:24:55.0124738Z [INFO] BUILD FAILURE
2021-10-18T07:24:55.0125501Z [INFO] ------------------------------------------------------------------------
2021-10-18T07:24:55.0126134Z [INFO] Total time:  04:20 min
2021-10-18T07:24:55.0126791Z [INFO] Finished at: 2021-10-18T07:24:55Z
2021-10-18T07:24:55.0127589Z [INFO] ------------------------------------------------------------------------
2021-10-18T07:24:55.0131319Z [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.0:npm (npm install) on project catalog-rest-service: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
2021-10-18T07:24:55.0169664Z [ERROR] 
2021-10-18T07:24:55.0171747Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
2021-10-18T07:24:55.0173367Z [ERROR] Re-run Maven using the -X switch to enable full debug logging.
2021-10-18T07:24:55.0174394Z [ERROR] 
2021-10-18T07:24:55.0199068Z [ERROR] For more information about the errors and possible solutions, please read the following articles:
2021-10-18T07:24:55.0202432Z [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
2021-10-18T07:24:55.0203449Z [ERROR] 
2021-10-18T07:24:55.0203964Z [ERROR] After correcting the problems, you can resume the build with the command
2021-10-18T07:24:55.0204940Z [ERROR]   mvn <args> -rf :catalog-rest-service
2021-10-18T07:24:55.0505493Z ##[error]Process completed with exit code 1.

cc: @darth-coder00

mithmatt avatar Oct 18 '21 07:10 mithmatt

#839 and #840 CI builds fail with same issue.

mithmatt avatar Oct 18 '21 07:10 mithmatt

@mithmatt Thanks for pointing it out. Once the linked PR is merged, you can rebase your branch to main and it should resolve the build failure

darth-coder00 avatar Oct 18 '21 09:10 darth-coder00