我的应用程序中出现两个错误,一个是漏洞太多,两个是我无法推送到heroku

问题描述

我的React Application遇到了一些问题。我正在研究Mernstack,而我的前端却拒绝推送到Heroku,我已经尝试了在StackOverflow上看到的每个示例,但没有一个能够解决问题。

1错误:Heroku拒绝了该应用程序,这是我尝试推送到Heroku时看到的。

remote:  !     Push rejected,Failed to compile Node.js app.
remote:  !     Push Failed
remote: !   Push rejected to salty-thicket-72247.
To https://git.heroku.com/salty-thicket-72247.git
! [remote rejected] master -> master (pre-receive hook declined)
error: Failed to push some refs to 'https://git.heroku.com/salty-thicket-72247.git'

以及许多易受攻击的软件包,这是我执行npm install时看到的

found 1 high severity vulnerability
run `npm audit fix` to fix them,or `npm audit` for details

Npm vulnerabilities

Heroku issues

解决方法

您的推送失败,因为安装了一些预提交钩子。 如果您的提交可以编译,则看起来好像是钩子测试,但是没有。