javascript:nodejs
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| javascript:nodejs [2018/12/19 09:38] – [コマンド] taka | javascript:nodejs [2018/12/19 09:44] (現在) – [コマンド] taka | ||
|---|---|---|---|
| 行 23: | 行 23: | ||
| package.jsonはインストールする・したパッケージを管理するためのもの。 | package.jsonはインストールする・したパッケージを管理するためのもの。 | ||
| - | <sxh bash gutter: false;> | + | |
| - | $ npm init | + | |
| - | </ | + | |
| - | <sxh bash gutter: false;> | + | npm initを実行すると対話型で以下項目を質問されるが、すべてEnterキーでスキップすることもできる。 |
| - | package name: (npmtest) | + | |
| - | version: (1.0.0) | + | package name: (npmtest) |
| - | description: | + | version: (1.0.0) |
| - | entry point: (index.js) | + | description: |
| - | test command: | + | entry point: (index.js) |
| - | git repository: | + | test command: |
| - | keywords: | + | git repository: |
| - | author: | + | keywords: |
| - | license: (ISC) | + | author: |
| - | </sxh> | + | license: (ISC) |
| + | |||
| + | 最後にpackage.jsonをこの内容で書き込んでいいかと聞かれるのでyesとタイプする。 | ||
| + | |||
| + | About to write to /Users/ | ||
| + | |||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | |||
| + | Is this OK? (yes) | ||
javascript/nodejs.1545179907.txt.gz · 最終更新: 2018/12/19 09:38 by taka