# Install

## **Installing**

Install the [Authereum SDK](https://www.npmjs.com/package/authereum) package from NPM:

```bash
$ npm install authereum --save
```

Please note that Authereum is meant for browser applications. For node.js support, see [this FAQ](https://docs.authereum.com/faq).

## **Upgrading package**

Upgrade to the latest version using the `@latest` tag:

```bash
$ npm install authereum@latest --save
```

## CDN

The Authereum SDK library is available on the [jsDelivr CDN](https://cdn.jsdelivr.net/npm/authereum@latest/authereum.js):

```markup
<script src="https://cdn.jsdelivr.net/npm/authereum@latest/authereum.js"></script>
```

Note: to purge the jsdeliver cache, visit this [purge url](https://purge.jsdelivr.net/npm/authereum@latest/authereum.js).

Alternatively, it's also available on the [unpkg CDN](https://unpkg.com/authereum@latest/authereum.js):

```markup
<script src="https://unpkg.com/authereum@latest/authereum.js"></script>
```

Afterwards the window function `window.Authereum` will be available to instantiate Authereum.

## Importing

#### Using ES6 modules:

```javascript
import Authereum from 'authereum'
```

#### Using commonjs modules:

```javascript
const Authereum = require('authereum').default
```
