Deployment failed

Hello, I am trying to deploy my react app, but it have failed log during building/ Would you please give me some solution, thank you so much! Here is the log message:
12 Replies
Percy
Percy2y ago
Project ID: N/A
luna
luna2y ago
vandoitruong
vandoitruongOP2y ago
N/A This is a new error after update package.json, would you please help me?#11 1.123 npm ERR! code EUSAGE #11 1.127 npm ERR! #11 1.128 npm ERR! The npm ci command can only install with an existing package-lock.json or #11 1.128 npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or #11 1.128 npm ERR! later to generate a package-lock.json file, then try again. #11 1.128 npm ERR! #11 1.128 npm ERR! Clean install a project #11 1.128 npm ERR! #11 1.128 npm ERR! Usage: #11 1.128 npm ERR! npm ci #11 1.128 npm ERR! #11 1.128 npm ERR! Options: #11 1.128 npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle] #11 1.128 npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling] #11 1.129 npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] #11 1.129 npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts] #11 1.129 npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run] #11 1.129 npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] #11 1.129 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links] #11 1.129 npm ERR! #11 1.129 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean #11 1.129 npm ERR! #11 1.129 npm ERR! Run "npm help ci" for more info #11 1.132 #11 1.132 npm ERR! A complete log of this run can be found in: #11 1.132 npm ERR! /root/.npm/_logs/2023-05-30T08_31_48_526Z-debug-0.log #11 ERROR: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
luna
luna2y ago
did you run npm i after updating the package.json?
vandoitruong
vandoitruongOP2y ago
Not yet, I just update package.json from github
luna
luna2y ago
youll need to do that to update the lock file. then do a new deploy.
vandoitruong
vandoitruongOP2y ago
Thank you so much!
vandoitruong
vandoitruongOP2y ago
Sorry it can not solve, in local host, I can run npm i --legacy-peer-deps to install these pakages, but in here, how can we add --legacy-peer-deps
luna
luna2y ago
that's not the solution, use the overrides like i said. using the legacy-peer-deps just makes it a problem for another day.
vandoitruong
vandoitruongOP2y ago
Because the mui-v4 did not support for react 18 anymore, although I have add the override but it can not work, do you have another idea, could you please help me?
luna
luna2y ago
if it doesnt work for 18 you'll need to update it, using the peer deps override is just hiding the issue.
Want results from more Discord servers?
Add your server