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

解决方法:

npm audit
npm audit fix

 

 

 

详细过程:

 

在进行npm install joi时,出现这个。

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

 

 

控制台已经给出了建议:run `npm audit fix` to fix them, or `npm audit` for details。

 

我们可以运行npm audit查看细节

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

 

 

 然后再运行npm audit fix

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

 

 

 然后npm audit

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

 

 

然后可以了。

 

验证一下是否成功,npm install

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

 

 没有问题

 

相关文章: