0
0

npm install 実行時 脆弱性の警告を受けた

Posted at

npm install 脆弱性問題による警告が発生

npm install ** Package Name** 実行時下記のエラーが出力されました。

# 以下警告文

npm WARN using --force Recommended protections disabled.

added 7 packages, removed 26 packages, changed 33 packages, and audited 612 packages in 6s

15 packages are looking for funding
  run `npm fund` for details

21 vulnerabilities (6 moderate, 14 high, 1 critical)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

解決方法としてはNode JSの最新バージョンをインストールすることで解決!

Node JS の正式ホーム
https://nodejs.org/en/download/prebuilt-installer

理由としては、Nodeのバージョンが古いためパッケージのバージョンがそれぞれ合わない状態となっており、脆弱性の警告が得られなかった模様です。

実施したこと

npm audit --forceの実行を行い脆弱性を持っているパッケージについて調整を行おうと思いましたが、結果として解決せず。。

npm audit fix --force

npm のバージョンが古いのかと思いnpm自体をアップデートしようとしましたが解消せず

 npm install -g npm             
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