Artifactory supports installing an npm package using pnpm. You can use pnpm add to install packages from registries set in the .npmrc file.
To install an npm package with pnpm:
Run the following command:
pnpm add <PACKAGE>
Where:
<PACKAGE>: The name of the package you want to install
For example:
pnpm add colors
To install a specific version of a package:
Run the following command:
pnpm add <PACKAGE>@<VERSION>
Where:
<PACKAGE>: The name of the package you want to install<VERSION>: The package version you want to install
For example:
pnpm add colors@latest
Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.