> ## Documentation Index
> Fetch the complete documentation index at: https://basecamp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Runtime Environment

> ランタイム環境のセットアップ

## 1. Node.js のインストール

以下の手順に従って Node.js のインストールを行います。

### 1. インストーラーのダウンロード

Node.js の ホームページにアクセスし、インストーラーをダウンロードします。

[https://nodejs.org/en/download/prebuilt-installer](https://nodejs.org/en/download/prebuilt-installer)

### 2. インストール

1. ダウンロードしたインストーラーをダブルクリックで実行します。
2. インストーラーが起動したら、**Next** をクリックします。
3. **End-User License Agreement** の画面が表示されるため、**I accept the terms in the License Agreement** にチェックを入れ、**Next** をクリックします。
4. **Destination Folder** の画面が表示されるため、そのまま **Next** をクリックします。
5. **Custom Setup** の画面が表示されるため、そのまま **Next** をクリックします。
6. **Tools for Native Modules** の画面が表示されるため、そのまま **Next** をクリックします。
7. **Ready to Install Node.js** の画面が表示されるため、**Install** をクリックします。
8. **このアプリがデバイスに変更を加えることを許可しますか？** の画面が表示された場合は **はい** をクリックします。
9. インストールが完了したら、**Finish** をクリックしてインストーラーを終了します。

### 3. インストールの確認

Node.js と npm（Node Package Manager）が正しくインストールされたか確認しましょう。

#### Node.js のバージョン確認

ターミナル（PowerShell）で以下のコマンドを実行します。

```bash theme={null}
node -v
```

#### Node.js のバージョン表示の例

正しくインストールされている場合は、以下のようにバージョンが表示されます。

```
v20.18.0
```

#### npm のバージョン確認

```bash theme={null}
npm -v
```

#### npm のバージョン表示の例

正しくインストールされている場合は、以下のようにバージョンが表示されます。

```
10.8.2
```
