package_name Verified current stable Not installed? Package Management

Package Name / Check Version Of Locally Installed Package

Check Version Of Locally Installed Package

Checks the locally installed version of a package.

$
Terminal
bunx <package_name> --version

When To Use

When verifying compatibility before deploying or running a project that relies on specific package versions.

Pro Tip

To avoid discrepancies, always check the local package version before upgrading, especially in CI/CD environments.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
bunx <package_name> --version

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Package Name v1.4.2
Copyright (c) 2021 Package Name Inc. All rights reserved.

Anatomy of Output

Understanding the result

example-package@1.2.3 Installed Version

Reflects the version currently installed.

Package 'example-package' is up to date. Status

Confirms there are no pending upgrades.

Troubleshooting

Common pitfalls

Error: Package 'example-package' is not installed.

Solution: Install the package using 'bunx {{package_name}}'. Please ensure the correct package name.

Error: Unable to access package information.

Solution: Check network connectivity or verify your registry settings.

Error: Invalid argument for --version.

Solution: Ensure the package name is correctly formatted without extra spaces.

Command Breakdown

What each part is doing

bunx
Base Command
The executable that performs this operation. Here it runs Package Name before the shell applies any redirect operators.
<package_name>
package name
The value supplied for package name.
--version
Command Option
Tool-specific option used by this command invocation.

How To Run

Execution path

  1. Step 1

    Run the command: `bunx {{package_name}} --version`

  2. Step 2

    Verify the output shows the expected version for compatibility checking.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.