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
Project ID:
N/A
Use https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides to fix the resolves.
Or update your deps
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: 1did you run
npm i
after updating the package.json
?Not yet, I just update package.json from github
youll need to do that to update the lock file. then do a new deploy.
Thank you so much!
Feel free to mark this as solved, if this all works. https://canary.discord.com/channels/713503345364697088/1113019045944504330/1113019048658206773
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
that's not the solution, use the overrides like i said.
using the legacy-peer-deps just makes it a problem for another day.
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?
if it doesnt work for 18 you'll need to update it, using the peer deps override is just hiding the issue.