npm_install: Install and Uninstall Npm Packages

View source: R/npm.R

npm_installR Documentation

Install and Uninstall Npm Packages

Description

Install and uninstall npm packages.

Usage

npm_install(..., scope = c("dev", "prod", "global"))

npm_uninstall(..., scope = c("dev", "prod", "global"))

Arguments

...

Packages to install or uninstall. If no packages are specified then this function install packages in package.json (useful e.g.: after clone).

scope

Scope of installation or uninstallation, see scopes.

Scopes

  • prod - Installs/Uninstalls packages for project with --save

  • dev - Installs/Uninstalls dev packages for project with --save-dev

  • global - Installs/Uninstalls packages globally with -g


packer documentation built on May 28, 2022, 5:06 p.m.