---
title: Install
slug: wip/install
createdAt: 2023-07-26T06:13:29.066Z
---

# Install

Cosmos is distributed as an npm package that can be added to any web project using a dependency manager of your choice.

Because the Cosmos package is distributed through Red Bull's in-house npm registry, an`.npmrc` in the root of a project with authentication instructions is required.

Add the following lines to your `.npmrc` file in the project's root.

:::CodeblockTabs
.npmrc

```text
    @cosmos:registry=https://artifactory.redbullmediahouse.com/artifactory/api/npm/rbds-npm-local/
//artifactory.redbullmediahouse.com/artifactory/api/npm/rbds-npm-local/:_auth=cy1yYm1oLXJlYWRvbmx5LXJiZHM6QVA4bTJXZVNhN2Q5bTZYVUpIcVZmdGtTOGpR
//artifactory.redbullmediahouse.com/artifactory/api/npm/rbds-npm-local/:always-auth=true
```
:::

For Yarn 4+ users:

:::CodeblockTabs
.yarnrc

```yaml
npmRegistries:
  //artifactory.redbullmediahouse.com/artifactory/api/npm/rbds-npm-local/:
    npmAlwaysAuth: true
    npmAuthIdent: cy1yYm1oLXJlYWRvbmx5LXJiZHM6QVA4bTJXZVNhN2Q5bTZYVUpIcVZmdGtTOGpR
```
:::

With an `.npmrc` file in the project's root, the Cosmos library can be installed as usual:

```shell
# npm
npm install --save-dev @cosmos/foundation
    
# yarn
yarn add @cosmos/foundation --dev
```

