> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/install-custom-npm-packages-for-advocate.md).

# Advocate用のカスタムNPMパッケージをインストールする

Advocate プログラムのマイクロサイトまたはウィジェットで使用するカスタム NPM パッケージをインストールできます。

#### カスタム NPS パッケージをインストールする

{% tabs %}
{% tab title="マイクロサイト用のカスタム NPM パッケージをインストールする" %}
マイクロサイトの構築にカスタムコンポーネントを使用したい場合は、カスタムパッケージをインストールできます。

1. 左側のナビゲーションメニューで、次を選択します ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → コンテンツ**.
2. 次の *マイクロサイトカード*、 **設定を編集**.
3. 次の下で *サイトホスティング* セクションで、 **+ パッケージを追加** → **NPM から追加**.
4. パッケージ名を入力してください、 *バージョン*、および *ファイル* パス。
5. 選択してください **追加**.

   * 戻る [マイクロサイトエディター](/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/microsite-experiences/microsite-editor-explained.md) サイトにカスタムコンポーネントの追加を始めるには。

   <div data-with-frame="true"><figure><img src="https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FUbs3l7ef3wJ2RshoBtTw%2FScreenshot%202026-05-19%20at%2009.39.04.png?alt=media&amp;token=6bb9c609-deb4-419a-be29-cb68eec06c51" alt="" width="375"><figcaption></figcaption></figure></div>

{% endtab %}

{% tab title="プログラムのウィジェット用にカスタム NPM パッケージをインストールする" %}
プログラムに当社のコンポーネントを使用しないカスタムウィジェットがある場合は、カスタムパッケージをインストールできます。

1. 左側のナビゲーションメニューで、次を選択します ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → コンテンツ**.
2. ウィジェットカードで、次を選択します **ウィジェットを編集**.
3. ～の下で *プログラムのウィジェット*、ウィジェットを選択します。

<div data-with-frame="true"><figure><img src="https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FVP8e0NyXkO9C7qvFrrYE%2FScreenshot%202026-05-19%20at%2009.36.22.png?alt=media&amp;token=c36213b2-fa8f-48d2-8b2d-207e85b2229e" alt="" width="563"><figcaption></figcaption></figure></div>

1. 左側のナビゲーションメニューで、次を選択します **パッケージ**.
2. 選択してください ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-3ca70a1ff22f0720bfb8c9e284c7d8178e3a547b%2Fb6a126b0775291b814c5a97f83039ef72ba42d6d02b0fe20f4790213ea01961e.svg?alt=media) **パッケージを追加**.
3. 選択してください **NPM から追加**.
4. パッケージ名、バージョン、およびファイルパスを入力してください。
5. 選択してください **追加**.
   {% endtab %}
   {% endtabs %}

方法の詳細を見る [プログラムのウィジェットをカスタマイズする](/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/widget-experiences/customize-program-widgets.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/install-custom-npm-packages-for-advocate.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
