eslintをローカルにインストール

> npm install eslint --save-dev

added 82 packages, and audited 83 packages in 4s

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

found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 8.1.0 -> 8.15.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>
npm notice Run npm install -g [email protected] to update!
npm notice

> npm ls
hattorisaki@ /Users/hattorisaki
└── [email protected]

> npx eslint -v
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.email Use `--init-author-email` instead.
v8.20.0 # インストールできてる!

「npm notice npmの新しいマイナーバージョンが利用可能です! 8.1.0 -> 8.15.0」と言われている。

> npm -v
8.1.0

たしかに今のバージョンは 8.1.0

マイナーバージョンであればメジャーバージョンが上がるよりも、変化が少ないので、影響はそこまで大きくないと判断し、アップデートすることにした

npmをアップデートした

> npm install -g [email protected]

removed 27 packages, changed 94 packages, and audited 202 packages in 2s

11 packages are looking for funding #この辺は宣伝ぽい
  run `npm fund` for details

found 0 vulnerabilities # 0件の脆弱性を発見

> npm -v
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.email Use `--init-author-email` instead.
8.15.0

package.jsonの設定ファイルをセットアップする

> npm init
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.email Use `--init-author-email` instead.
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.

(このユーティリティは package.json ファイルを作成する手順を説明します。
最も一般的な項目のみをカバーし、賢明なデフォルトを推測するようにします。

これらのフィールドとその役割に関する決定的な文書については、 `npm help init` を参照してください。
を参照してください。

npm install <pkg>` を使って、パッケージをインストールし、パッケージの依存関係として保存します。
package.json ファイルに依存関係として保存します。

終了するにはいつでも^Cを押してください。)