npm
node package manager
npm consists of three distinct components:
the website
the Command Line Interface (CLI)
the registry
https://docs.npmjs.com/about-npm/
npm installしたパッケージの更新確認とアップデート(npm-check-updates)
https://dackdive.hateblo.jp/entry/2016/10/10/095800
プロジェクトにパッケージをインストールする
$ npm install --save my-package
→プロジェクトの node_modules ディレクトリにパッケージがインストールされる
プロジェクトにパッケージがインストールされている場合にそれをCLIから使う
$ npx my-package --version
参考: https://dev.classmethod.jp/node-js/node-npm-npx-getting-started/
run-script を使う
直接使う
$ ./node_modules/.bin/my-package --version
でもできる
#JavaScript
#パッケージ管理