NPM Installation Guide
This guide covers NPM installation for React applications. For non-React applications or simple script tag integration, see the CDN Installation Guide.Installation Methods
The Moss SDK offers two installation methods:| Method | Best For | Setup Complexity |
|---|---|---|
| CDN Installation | Non-React apps, simple integration | ⭐ Simple |
| NPM Installation (this guide) | React apps, full TypeScript support | ⭐⭐ Moderate |
Prerequisites
- A React application (v17 or higher)
- An active Node.js environment (v18 or higher recommended)
1. Installing the SDK
The Moss SDK is published on the public NPM registry. No authentication or.npmrc configuration is required.