Sha256: 10b617bf487c2dca94dd653d9b1fca58fbadb24f94adb896b79a0888c69315f3

Contents?: true

Size: 941 Bytes

Versions: 83

Compression:

Stored size: 941 Bytes

Contents

# Node Dependencies and NPM
## Updating
After installing the files, you may want to update the node dependencies. This is analogous to updating gem versions:

```bash
cd client
npm install -g npm-check-updates
rm npm-shrinkwrap.json
npm-check-updates -u
npm install
npm prune
npm shrinkwrap
```

Confirm that the hot replacement dev server and the Rails server both work. You may have to delete `node_modules` and `npm-shrinkwrap.json` and then run `npm shrinkwrap`.

*Note: `npm prune` is required before running `npm shrinkwrap` to remove dependencies that are no longer needed after doing updates.*

## Adding New Dependencies
Typically, you can add your Node dependencies as you normally would. Occasionally, adding a new dependency may require removing and re-running `npm shrinkwrap`:

```bash
cd client
npm install --save module_name@version
# or
# npm install --save_dev module_name@version
rm npm-shrinkwrap.json
npm shrinkwrap
```

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
react_on_rails-6.1.1.rc.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.1.0 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.5 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.4 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.3 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.2 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.rc.6 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.rc.5 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.rc.4 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.rc3 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.rc.2 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.rc.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.beta.5 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.beta.4 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.beta.3 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.beta.2 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.0.0.beta.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-5.2.0 docs/additional-reading/node-dependencies-and-npm.md