Sha256: d3dd892302b6ff4b54ed3c3dfe8ba5fb787a6d2f5971c092fb62532f0469faaf

Contents?: true

Size: 859 Bytes

Versions: 117

Compression:

Stored size: 859 Bytes

Contents

# Updating Dependencies

If you frequently update you dependencies in small batches, you will avoid large and painful updates later. Then again, if you don't have good tests coverage, it's hazardous to update dependencies at any time.

## Ruby

Delete any unwanted version constraints from your Gemfile and run:

```bash
bundle update
```

## NPM

1. Install [npm-check-updates](https://www.npmjs.com/package/npm-check-updates)
1. Run `yarn outdated` and read CHANGELOGs of major updated packages before you update. You might not be ready for some updates.
1. Run these commands. You may or may not need to `rm -rf` your `node_modules` directory. 

```
cd client
ncu -u -a
yarn
```

Some combinations that I often run:

### remove old installed `node_modules` so you only get what corresponds to package.json
```
ncu -u -a && rm -rf node_modules && yarn
```

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
react_on_rails-11.1.7 docs/additional-reading/updating-dependencies.md
react_on_rails-11.1.6 docs/additional-reading/updating-dependencies.md
react_on_rails-11.1.5 docs/additional-reading/updating-dependencies.md
react_on_rails-11.1.4 docs/additional-reading/updating-dependencies.md
react_on_rails-11.1.3 docs/additional-reading/updating-dependencies.md
react_on_rails-11.1.2 docs/additional-reading/updating-dependencies.md
react_on_rails-11.1.1 docs/additional-reading/updating-dependencies.md
react_on_rails-11.1.0 docs/additional-reading/updating-dependencies.md
react_on_rails-11.1.0.beta.1 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.10 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.9 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.8 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.7 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.6 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.5 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.4 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.3 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.2 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.1 docs/additional-reading/updating-dependencies.md
react_on_rails-11.0.0 docs/additional-reading/updating-dependencies.md