古くなったパッケージがないか確認 - npm outdated

基本

 npm outdated           # ローカルのパッケージすべて
 npm outdated --global  # グローバルのパッケージすべて
 npm outdated lodash    # 指定したパッケージ(lodash)

Current != Wantedなパッケージだけ

Bash

npm outdated | awk '$2 != $3'

PowerShell

npm outdated | ConvertFrom-String -PropertyNames (1..5) | ? { $_.2 -ne $_.3 } | ft

参考

https://docs.npmjs.com/cli/v7/commands/npm-outdated


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2021-03-04 (木) 12:21:45