nr
  • 👋Welcome
  • Getting Started
    • Install
    • Environment
    • Configuration File
  • Configuration Reference
    • command
    • task
    • script
  • CLI Reference
    • CLI Reference
Powered by GitBook
On this page
  1. Getting Started

Install

PreviousWelcomeNextEnvironment

Last updated 2 years ago

nr is available on the NPM registry and can be installed using any package manager that can install packages from it.

npm install --save-dev @darkobits/nr
yarn add @darkobits/nr --dev

To verify the installation, you should now be able to run:

npx nr --help

A Note On Global Installations

nr may be installed globally as well, but relying on global dependencies is . Using a local installation means your project can explicitly declare that it depends on another package and, importantly, which version of that package it is compatible with.

However, one downside to a local installation is that users are not always able to invoke locally-installed CLIs directly from the command line, leading to a sub-optimal user experience. To read more about how you can address this, see the following section on .

considered an anti-pattern
configuring your environment
Page cover image