$ npm install -g npm-cli-sample でインストールできる npm ライブラリを作成していきます。 npm init npm init で package.json の雛形を作成します。 $ mkdir npm-cli-sample $ cd npm-cli-sample $ npm init ... package name: (npm-cli-sample) # そのまま Enter を押すとディレクトリ名になる version: (1.0.0) 0.0.1 # version description: npm cli sample # 説明 entry point: (index.js) # 後で書き換えるのでなんでも良い test command: # 最初はテストいらないのでそのまま Enter git repository: # GitHub などレポ