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.6.0.alpha.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.5.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.5.0 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.4.2 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.5.0.beta.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.4.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.4.0 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.3.5 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.3.4 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.3.3 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.3.2 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.3.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.3.0 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.2.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.2.1.rc.3 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.2.1.rc.2 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.2.1.rc.1 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.2.0 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.1.2 docs/additional-reading/node-dependencies-and-npm.md
react_on_rails-6.1.1 docs/additional-reading/node-dependencies-and-npm.md