Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion docs/platforms/javascript/common/install/npm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,24 @@ notSupported:
- javascript.cloudflare
---

<PlatformContent includePath="getting-started-install" />
The npm package for Sentry offers several advantages for specific use cases:

- **Framework-specific features**: If you're using a framework like React or Vue, installing the corresponding Sentry SDK (e.g., `@sentry/react` or `@sentry/vue`) via npm provides framework-specific features and optimizations.

- **Full public API access**: The npm package exposes the complete set of Sentry's public APIs, allowing for more extensive customization and functionality.

- **Version control**: Installing via npm gives you full control over the SDK version, enabling you to manage updates and ensure compatibility with your project.

- **Build process integration**: Using the npm package allows for better integration with your build process and bundling tools.

```bash {tabTitle:npm}
npm install @sentry/browser --save
```

```bash {tabTitle:yarn}
yarn add @sentry/browser
```

```bash {tabTitle:pnpm}
pnpm add @sentry/browser
```
Loading