LoginSignup
0
1

More than 5 years have passed since last update.

hapijs / hoek でセキュリティ脆弱性があるって怒られた場合の解消法

Last updated at Posted at 2018-07-29

Ionic3にてコードをgithubに上げたらセキュリティ脆弱性が見つかったよ!って怒られた。
怒られてる中身見てみたら
hapijs / hoek
という部分に脆弱性があるとか。なんだこれ。

We found a potential security vulnerability in one of your dependencies.
A dependency defined in package-lock.json has known security vulnerabilities and should be updated.

ぐぐってみたらhoekにて脆弱性だしちゃった。修正したから

 npm uninstall hoek 
 npm update
 npm install

で直るよ、的なことが書いてあった。
hoek のバージョン2.16.3で問題になっていたので、これをアップデートすれば完了

参考にしたページ↓
https://github.com/Microsoft/vscode/issues/48783


追記
↑のコマンドやっても警告消えない場合、
package-lock.json の中開いてhoek version 2.16.3 ってなってるところ全部修正すると警告は消える。
しかし、根本解決になってないから、npm install するとまた戻ってしまうのよなー。
根本直さないと。。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1