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-1.0.2 | docs/additional_reading/node_dependencies_and_npm.md |
react_on_rails-1.0.1 | docs/node_dependencies_and_npm.md |
react_on_rails-1.0.0 | docs/node_dependencies_and_npm.md |