Skip to content

Commit

Permalink
fix: Node.js と npm のバージョンを LTS に合わせる (#982)
Browse files Browse the repository at this point in the history
* fix: Node.js と npm のバージョンを本日時点での LTS のものに変更した

* fix: Node.js 公式ドキュメントへのリンクを 8.x から 12.x に変更した
  • Loading branch information
numb86 authored and azu committed Oct 21, 2019
1 parent 4d8ea36 commit 454e3a8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Twitterのハッシュタグは [#jsprimer](https://twitter.com/intent/tweet?has

npm install

Node.js 8.2.0以上が必要です。
Node.js 12.13.0以上が必要です。
`npx`コマンドが利用できることを確認してください。

## Usage
Expand Down
4 changes: 2 additions & 2 deletions book.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
],
"variables": {
"esversion": "2019",
"nodeversion": "8.12.0",
"npmversion": "6.4.1",
"nodeversion": "12.13.0",
"npmversion": "6.12.0",
"triplebackticks": "```",
"console": "<a class=\"gitbook-plugin-js-console\" aria-hidden=\"true\"></a>"
},
Expand Down
4 changes: 2 additions & 2 deletions source/use-case/nodecli/argument-parse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: "コマンドライン引数を受け取り、アプリケーショ
コマンドライン引数を扱う前に、まずは`process`オブジェクトについて触れておきます。
`process`オブジェクトはNode.js実行環境のグローバル変数のひとつです。
`process`オブジェクトが提供するのは、現在のNode.jsの実行プロセスについて、情報の取得と操作をするAPIです。
詳細は[公式ドキュメント](https://nodejs.org/dist/latest-v8.x/docs/api/process.html#process_process)を参照してください。
詳細は[公式ドキュメント](https://nodejs.org/dist/latest-v12.x/docs/api/process.html#process_process)を参照してください。

コマンドライン引数へのアクセスを提供するのは、`process`オブジェクトの`argv`プロパティで、文字列の配列になっています。
次のように`main.js`を変更し、`process.argv`をコンソールに出力しましょう。
Expand Down Expand Up @@ -176,7 +176,7 @@ $ node main.js ./sample.md
[npmのGitHubリポジトリ]: https://github.com/npm/npm
[CommonJSモジュール]: https://nodejs.org/docs/latest/api/modules.html
[Node.js]: https://nodejs.org/ja/
[require関数]: https://nodejs.org/dist/latest-v8.x/docs/api/modules.html#modules_loading_from_node_modules_folders
[require関数]: https://nodejs.org/dist/latest-v12.x/docs/api/modules.html#modules_loading_from_node_modules_folders
[アプリケーション開発の準備]: ../../setup-local-env/README.md
[ECMAScriptモジュール]: ../../../basic/module/README.md
[^1]: --saveオプションをつけてインストールしたのと同じ意味。npm 5.0.0からは--saveがデフォルトオプションとなりました。
6 changes: 3 additions & 3 deletions source/use-case/nodecli/helloworld/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ ECMAScriptで定義されているグローバルオブジェクトはブラウ

[document]: https://developer.mozilla.org/ja/docs/Web/API/Document
[XMLHttpRequest]: https://developer.mozilla.org/ja/docs/Web/API/XMLHttpRequest
[global]: https://nodejs.org/docs/latest-v8.x/api/globals.html
[process]: https://nodejs.org/docs/latest-v8.x/api/process.html#process_process
[Buffer]: https://nodejs.org/docs/latest-v8.x/api/buffer.html
[global]: https://nodejs.org/docs/latest-v12.x/api/globals.html
[process]: https://nodejs.org/docs/latest-v12.x/api/process.html#process_process
[Buffer]: https://nodejs.org/docs/latest-v12.x/api/buffer.html

0 comments on commit 454e3a8

Please sign in to comment.