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?

こんなトラップある??npm audit fix --fource

0
Posted at

Mongo DBをインストールしようとしたら脆弱性があるから修正するか聞かれた。
この npm audit fixの後ろの--forceというのはやばくて、今のパッケージの依存関係に関係なく、全ての脆弱性を強制的に修正する動きをする。
これによりVueやNuxtが3から2に強制ダウングレードされ、逆に多くの脆弱性警告がでるし、deprecatedな依存関係が大量に検出された。

## mongodbのインストール
sato@[9:51:08]:~/workspace/nuxtchan% npm install mongodb
...
added 12 packages, and audited 906 packages in 8s

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

9 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

こんな気軽にrecommendするコマンドじゃないだろ。
ちょートラップだな。。

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?