新規プロジェクトを開始する
npm コマンドを使って開始。
npm init
こちらのコマンドを使って package.json を作成。
package name: "my-node-app"
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
name: パッケージ名
version: バージョン
description: プロジェクトの簡単な説明
entry point: index.js
test command: プロジェクトのテストに使用するコマンド
git repository: プロジェクトをオープンソースにする場合、 ユーザー名/プロジェクト名 と記述する
keywords: パブリックnpmレジストリにプロジェクトを公開したい場合には必要
author: 作者の名前、または会社名を入力する
license: (ISC) プロジェクトに使用するライセンス
とりあえず、モジュールの名前以外全てデフォルト値で進める。
Is this OK? (yes)
と表示されたらエンターを押す。
↧