Rock Mountain
  • Home
  • User Guide
    • Glass Web Components
    • Using reCAPTCHA
    • Publishing Source Code with Syntax Highlighting
  • Developer Guide
    • Getting Started
    • Adding NPM Packages
    • Database
      • Backing Up and Restoring Data
      • Database Schema
      • MongoDB Tips and Snippets
      • VS Code and the MongoDB Playground
    • Common Errors and Their Solutions
    • Developing Glass Web Components
    • DevOps
      • Build and Deployment Procedure
      • GitHub Conventions and Workflow
      • Merging Preview Into Main
    • File Structure
    • React Components
      • SiteLayout Component
      • Toggle Lazy Load Image Component
    • Update or Change the Fav Icon
    • References and Learning Resources
  • Icons
Powered by GitBook
On this page
  1. Developer Guide

Adding NPM Packages

PreviousGetting StartedNextDatabase

Last updated 3 years ago

Since the system uses , adding new NPM packages may be a little different than what you are used to.

To see Rush's command line help, you can type:

$ rush -h

To install a package, use the following command:

$ rush add --package <package-name>

Or...

$ rush add -p <package-name>

This command adds a dependency to the package.json and runs rush upgrade. See the documentation for more options.

Rush
rush add