0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

npm install時に「npm audit」の警告が出るとき

Posted at

npm installでmicromodalJSをインストールしようとしたら以下のようなセキュリティ警告が表示されました。

error2.PNG

参考記事

原因

脆弱性の高いライブラリのバーションを使うと警告がでるようです。

対処

まずセキュリティ警告のあるライブラリの確認をします。

npm audit

実行結果
image.png

node_modules/webpakに問題があるようです。

解決のためのコマンド
警告に従ってコマンドを打ちます。

npm audit fix

実行結果

image.png

無事に対処できたようです。

確認

npm installをもう一度実行してみます。

実行結果
image.png

package.jsonも確認します。
23行目に追記されました。

image.png

無事に解決できました。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?