NPM
Learn about installing with NPM.
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.
Copied
npm install @sentry/browser --save
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").