Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我的angular项目的所有组件都没有上传到Github上_Angular_Github - Fatal编程技术网

我的angular项目的所有组件都没有上传到Github上

我的angular项目的所有组件都没有上传到Github上,angular,github,Angular,Github,我在试图将我的项目上传到Github时发现了一个特殊的问题。上载angular 4项目时,仅上载应用程序组件文件。其余的组件没有上传到Github中。但是,Github显示了以下漏洞警报: Known moderate severity security vulnerability detected in hoek < 4.2.1 defined in package-lock.json. package-lock.json update suggested: hoek ~> 4.2

我在试图将我的项目上传到Github时发现了一个特殊的问题。上载angular 4项目时,仅上载应用程序组件文件。其余的组件没有上传到Github中。但是,Github显示了以下漏洞警报:

Known moderate severity security vulnerability detected in hoek < 4.2.1 defined in package-lock.json. package-lock.json update suggested: hoek ~> 4.2.1. 
在package-lock.json中定义的hoek<4.2.1中检测到已知的中度安全漏洞。package-lock.json更新建议:hoek~>4.2.1。 我不知道怎么了。是因为我的组件没有上传漏洞警报吗

以下是我的Github配置文件链接:

解决方案:

为了解决这个问题,我采取了以下步骤:

  • npm卸载hoek
  • npm更新
  • npm安装

  • 根据您需要安装npm i hoek,以防您使用vscode。如果是这样的话,看看这个问题。是的,我遵循了提供的步骤,它工作得很好。很高兴我帮了忙。