# Installation

Install @rupamotion/player from npm or load it from a CDN, and what TypeScript needs.

## From npm

```sh
npm i @rupamotion/player
```

The types come with the entries (the package `exports`), so TypeScript needs `moduleResolution` set to `bundler`,
`node16` or `nodenext`. The classic `node` resolution does not read `exports`. The package has no `engines` field: it
runs in browsers and imports on any server.

## From a CDN, without a build step

Always name an exact version, never `latest`:

```html
<script type="module" src="https://cdn.jsdelivr.net/npm/@rupamotion/player@0.1.0/dist/element.js"></script>
```

That line loads the `<rupa-player>` element and mounts every snippet root on the page.

## Pin a version

```sh
npm i @rupamotion/player@0.1.0
```

## Next

[Quick start](/start/quick-start/)
