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

# Install Node SDK

export const MultiRelatedLinks = ({sections = []}) => {
  if (!sections || sections.length === 0) {
    return null;
  }
  return <div className="space-y-8">
      {sections.map((section, index) => <RelatedLinks key={index} title={section.title} items={section.items} />)}
    </div>;
};

export const RelatedLinks = ({title, items = []}) => {
  const getBadgeClass = badge => {
    if (!badge) return "badge-default";
    const badgeType = badge.toLowerCase().replace(/\s+/g, "-");
    return `badge-${badge === "ガイド" ? "guide" : badgeType}`;
  };
  if (!items || items.length === 0) {
    return null;
  }
  return <div className="my-8">
      {}
      <h3 className="text-sm font-bold uppercase tracking-wider mb-4">{title}</h3>

      {}
      <div className="flex flex-col gap-3">
        {items.map((item, index) => <a key={index} href={item.href} className="py-2 px-3 rounded related_link hover:bg-[#f2f2f2] dark:hover:bg-[#111827] flex items-center gap-3 group no-underline hover:no-underline border-b-0">
            {}
            <span className={`px-2 py-1 rounded-full text-xs font-semibold uppercase tracking-wide flex-shrink-0 ${getBadgeClass(item.badge)}`}>
              {item.badge}
            </span>

            {}
            <span className="text-base">{item.label}</span>
          </a>)}
      </div>
    </div>;
};

To call Box APIs from a Node project, install the Box Node SDK in one of two ways:

* As part of the [`box`](/guides/tooling/box-npm-package) npm package (recommended for new projects)
* As the standalone `box-node-sdk` package (supported for existing integrations)

<Card href="https://github.com/box/box-node-sdk" arrow title="Learn more about Node SDK on GitHub" />

## Install with `npm install box` (recommended)

The `box` npm package installs the Box Node SDK and the [Box CLI](/guides/cli) as direct dependencies, so you get both tools in a single command.

### Prerequisites

Install [Node.js](https://nodejs.org/) 22 or later.

### Install

```shell theme={null}
npm install box
```

### Import the SDK

```javascript theme={null}
import BoxSDK from 'box/sdk';  // ESM
const BoxSDK = require('box/sdk');  // CommonJS
```

TypeScript types are included. After installation, you can also run any [CLI command](/guides/cli) with `npx box <command>` — no separate install is required.

The `box` package works with npm, yarn, pnpm, and bun.

<Info>
  **Existing `box-node-sdk` users:** If `box-node-sdk` works for you, leave it. The `box` package is for developers — and their coding agents — starting fresh. Existing code is unaffected.
</Info>

## Install `box-node-sdk` directly

Use the standalone package for existing projects.

### NPM installation

To install the Node SDK run the following command from your terminal
window or command prompt using the [Node Package Manager][npm].

```shell theme={null}
npm install box-node-sdk --save
```

### Yarn installation

Similarly, the SDK can be installed using the [Yarn package][yarn] manager.

```shell theme={null}
yarn add box-node-sdk
```

[npm]: https://www.npmjs.com/

[yarn]: https://yarnpkg.com/

[node]: https://github.com/box/box-node-sdk

<RelatedLinks
  title="RELATED GUIDES"
  items={[
{ label: translate("JWT Auth"), href: "/guides/authentication/jwt/index", badge: "GUIDE" },
{ label: translate("OAuth 2.0 Auth"), href: "/guides/authentication/oauth2/index", badge: "GUIDE" }
]}
/>
