LoginSignup
0
0

More than 1 year has passed since last update.

【npm】run `npm audit fix` to fix them, or `npm audit` for detailsの対処法

Posted at

症状

npmstartを実行としたところ、

上記のように起こられたので、npminstallを実行したところ、下記メッセージが表示されました。

翻訳すると「397の脆弱性が見つかりました(391中程度、6高)npm audit fixを実行して修正するか、npmauditを実行して詳細を確認してください」でした。脆弱性多すぎ。。。

error
found 397 vulnerabilities (391 moderate, 6 high)
  run `npm audit fix` to fix them, or `npm audit` for details

(問題のあるパッケージを洗い出すnpm auditを実行したところ、量が多すぎてterminalの表示しきれなくなってしまいました。。。)

解決方法

npm audit fixを実行することでエラーが解消し、npmstartが実行できるようになりました。
ちなみに、audit fixはnode_modulesの脆弱性を自動的に修復してくれる呪文のようです。ありがたや

auditfix
npm audit fix

参考

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