> For the complete CircleCI developer hub index, see [llms.txt](https://circleci.com/developer/llms.txt)

# cobli/npm-config

Changes npm configuration

## Commands

### set-registry

Sets a registry to .npmrc

| Parameter | Type | Default | Description |
|---|---|---|---|
| `registry-prurl` | string |  | protocol-relative URL (ex: //registry.domain.net/path/)
 |
| `scope` | string |  | registry scope |
| `auth-token` | string |  | authorization token for private repos |

## Examples

### setting_registry

Sets a registry in NPM client (~/.npmrc)

```yaml
version: 2.1
orbs:
  npm-config: cobli/npm-config@x.x.x
jobs:
  test:
    docker:
      - image: circleci/node:9.11.2
    steps:
      - checkout
      - npm-config/set-registry:
          registry-prurl: //your.registry.domain.net/path/
          scope: '@your-scope'
          auth-token: your-repo-token
      - run:
          name: Download depencies
          command: yarn
      - run:
          name: Test
          command: yarn test
```