Node.js 将React web app部署到heroku时遇到错误

Node.js 将React web app部署到heroku时遇到错误,node.js,reactjs,heroku,Node.js,Reactjs,Heroku,我试图通过github存储库将React web应用部署到heroku,但出现以下错误,!推送被拒绝,未能编译React.js(创建React app)多应用程序。我在互联网上搜索解决方案,但没有找到任何解决方案。我得到的完整日志如下: -----> Using buildpack: mars/create-react-app -----> React.js (create-react-app) multi app detected =====> Downloading Bui

我试图通过github存储库将React web应用部署到heroku,但出现以下错误,!推送被拒绝,未能编译React.js(创建React app)多应用程序。我在互联网上搜索解决方案,但没有找到任何解决方案。我得到的完整日志如下:

-----> Using buildpack: mars/create-react-app
-----> React.js (create-react-app) multi app detected
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git
=====> Detected Framework: Multipack
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
=====> Detected Framework: Node.js
       
-----> Creating runtime environment
       
       NPM_CONFIG_LOGLEVEL=error
       NODE_VERBOSE=false
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       
-----> Installing binaries
       engines.node (package.json):  14.x
       engines.npm (package.json):   unspecified (use default)
       
       Resolving node version 14.x...
       Downloading and installing node 14.17.0...
       Using default npm version: 6.14.13
       
-----> Installing dependencies
       Installing node modules
       npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
       npm ERR! 
       npm ERR! 
       npm ERR! Invalid: lock file's @material-ui/lab@4.0.0-alpha.58 does not satisfy @material-ui/lab@*
       npm ERR! 
       
       npm ERR! A complete log of this run can be found in:
       npm ERR!     /tmp/npmcache.Y9WIv/_logs/2021-05-15T16_32_16_496Z-debug.log
-----> Build failed
       
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       
       If you're stuck, please submit a ticket so we can help:
       https://help.heroku.com/
       
       Love,
       Heroku
       
 !     Push rejected, failed to compile React.js (create-react-app) multi app.
 !     Push failed

你知道我哪里出了问题吗?非常感谢您的帮助。

错误指示package.json和package-lock.json不同步。您可以删除
包锁.json
节点模块
,运行
npm install
并将更新后的
包锁.json
推回去,查看构建是否仍在提示错误。@Micfong我已经这样做了,但仍然面临相同的问题。您是否有可能同时拥有
warn.lock
包锁.json
,如果
@material ui/lab
“@material ui/lab”:“4.0.0-alpha.58”
“@material ui/lab”:“*”