add Verified current stable Not installed? Version Control

Add / Download Specific Package Version

Download Specific Package Version

Installs a specific version of a package into your project.

$
Terminal
pnpm add <module_name>@<version>

When To Use

When specific functionality from a certain version is required or when updating to a new release.

Pro Tip

Pinning to a version using /^[0-9]+\.[0-9]+\.[0-9]+/ can prevent unintentional upgrades.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
pnpm add <module_name>@<version>

Anatomy of Output

Understanding the result

Installed package: module_name@version Package Installation Success

Indicates successful installation of specified version.

Current version: version Package Current Version

Confirmation of the installed version.

Installation Complete in: 50ms Installation Efficiency

Duration for the specified package installation.

Troubleshooting

Common pitfalls

npm ERR! package not found

Solution: Verify the package name and version.

npm ERR! invalid version

Solution: Ensure the version follows semantic versioning format.

npm ERR! permission denied

Solution: Check write permissions in the installation directory.

Command Breakdown

What each part is doing

pnpm
Base Command
The executable that performs this operation. Here it runs Add before the shell applies any redirect operators.
<module_name>
module name
The value supplied for module name.
<version>
version
The value supplied for version.

Alternative Approaches

Comparable commands in other tools

Alternative version control tools for the same job.