Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Error Build pipe proxy

Avatar

Level 2
Hello, I'm running a pipe and it's giving me this error, and I don't know why it's showing an error on the proxy


20:11:52,171 [main] [INFO] --- frontend:1.12.0:install-node-and-npm (install node and npm) @ aem-disbrateinstitucional-project.ui.frontend ---
20:11:52,231 [main] [INFO] Installing node version v16.17.0
20:11:52,232 [main] [INFO] Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.gz to /root/.m2/repository/com/github/eirslett/node/16.17.0/node-16.17.0-linux-x64.tar.gz
20:11:52,234 [main] [INFO] No proxies configured
20:11:52,234 [main] [INFO] No proxy was configured, downloading directly
20:11:52,975 [main] [INFO] Unpacking /root/.m2/repository/com/github/eirslett/node/16.17.0/node-16.17.0-linux-x64.tar.gz into /build_root/build/disbrate/ui.frontend/node/tmp
20:11:54,508 [main] [INFO] Copying node binary from /build_root/build/disbrate/ui.frontend/node/tmp/node-v16.17.0-linux-x64/bin/node to /build_root/build/disbrate/ui.frontend/node/node
20:11:54,753 [main] [INFO] Installed node locally.
20:11:54,754 [main] [INFO] Installing npm version 8.15.0
20:11:54,755 [main] [INFO] No proxies configured
20:11:54,755 [main] [INFO] No proxy was configured, downloading directly
20:11:54,875 [main] [INFO] Unpacking /root/.m2/repository/com/github/eirslett/npm/8.15.0/npm-8.15.0.tar.gz into /build_root/build/disbrate/ui.frontend/node/node_modules
20:11:55,897 [main] [INFO] Installed npm locally.
20:11:55,899 [main] [INFO]
20:11:55,899 [main] [INFO] --- frontend:1.12.0:npm (npm ci) @ aem-disbrateinstitucional-project.ui.frontend ---
20:11:55,904 [main] [INFO] Running 'npm ci' in /build_root/build/disbrate/ui.frontend
20:11:56,491 [Exec Stream Pumper] [INFO] npm ERR! code EUSAGE
20:11:56,494 [Exec Stream Pumper] [INFO] npm ERR!
20:11:56,494 [Exec Stream Pumper] [INFO] npm ERR! The `npm ci` command can only install with an existing package-lock.json or
20:11:56,494 [Exec Stream Pumper] [INFO] npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
20:11:56,494 [Exec Stream Pumper] [INFO] npm ERR! later to generate a package-lock.json file, then try again.
20:11:56,495 [Exec Stream Pumper] [INFO] npm ERR!
20:11:56,495 [Exec Stream Pumper] [INFO] npm ERR! Clean install a project
20:11:56,495 [Exec Stream Pumper] [INFO] npm ERR!
20:11:56,495 [Exec Stream Pumper] [INFO] npm ERR! Usage:
20:11:56,496 [Exec Stream Pumper] [INFO] npm ERR! npm ci
20:11:56,496 [Exec Stream Pumper] [INFO] npm ERR!
20:11:56,496 [Exec Stream Pumper] [INFO] npm ERR! Options:
20:11:56,496 [Exec Stream Pumper] [INFO] npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts]
20:11:56,496 [Exec Stream Pumper] [INFO] npm ERR! [--script-shell <script-shell>]
20:11:56,497 [Exec Stream Pumper] [INFO] npm ERR!
20:11:56,497 [Exec Stream Pumper] [INFO] npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
20:11:56,497 [Exec Stream Pumper] [INFO] npm ERR!
20:11:56,497 [Exec Stream Pumper] [INFO] npm ERR! Run "npm help ci" for more info
20:11:56,500 [Exec Stream Pumper] [INFO]
20:11:56,500 [Exec Stream Pumper] [INFO] npm ERR! A complete log of this run can be found in:
20:11:56,500 [Exec Stream Pumper] [INFO] npm ERR! /root/.npm/_logs/2024-06-26T20_11_56_411Z-debug-0.log
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi, 


The error indicates that you don't have a package-lock.json file, which can lead to dependency version collisions. Do you have a package-lock.json committed to your codebase? If not, please add it.

 

Hope this helps



Esteban Bustamante

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi, 


The error indicates that you don't have a package-lock.json file, which can lead to dependency version collisions. Do you have a package-lock.json committed to your codebase? If not, please add it.

 

Hope this helps



Esteban Bustamante