npm command support
The following sections summarize the npm commands that are supported, by CodeArtifact repositories, in addition to specific commands that are not supported.
Contents
Supported commands that interact with a repository
This section lists npm commands where the npm client makes one
or more requests to the registry it's been configured with (for example, with npm
config set registry
). These commands have been verified to function correctly
when invoked against a CodeArtifact repository.
Command | Description |
---|---|
Tries to guess the location of a package’s bug tracker URL, and then tries to open it. |
|
Installs a project with a clean slate. |
|
Deprecates a version of a package. |
|
Modifies package distribution tags. |
|
Tries to guess the location of a package’s documentation URL, and then
tries to open it using the |
|
Runs a set of checks to ensure that your npm installation has what it needs to manage your JavaScript packages. |
|
Installs a package. |
|
Installs a project with a clean slate and runs tests. Alias: |
|
Installs package and runs tests. Runs an |
|
Checks the configured registry to see if any installed packages are currently outdated. |
|
Pings the configured or given npm registry and verifies authentication. |
|
Publishes a package version to the registry. |
|
Guesses the location of a package’s repository URL, and then tries to
open it using the |
|
Displays package metadata. Can be used to print metadata properties. |
Supported client-side commands
These commands don't require any direct interaction with a repository, so CodeArtifact does not need to do anything to support them.
Command | Description |
---|---|
Builds a package. |
|
Manipulates the packages cache. |
|
Enables tab completion in all npm commands. |
|
Updates the contents of the user and global |
|
Searches the local package tree and attempts to simplify the structure by moving dependencies further up the tree, where they can be more effectively shared by multiple dependent packages. |
|
Edits an installed package. Selects a dependency in the current working directory and opens the package folder in the default editor. |
|
Browses an installed package. Spawns a subshell in the directory of the installed package specified. If a command is specified, then it is run in the subshell, which then immediately terminates. |
|
Gets help on npm. |
|
Searches npm help documentation. |
|
Creates a |
|
Symlinks a package folder. |
|
Lists installed packages. |
|
Creates a tarball from a package. |
|
Displays prefix. This is the closest parent directory to contain a
|
|
Removes packages that are not listed on the parent package's dependencies list. |
|
Runs the |
|
Runs a package's stop, restart, and start scripts and associated pre- and post- scripts. |
|
Prints the effective |
|
Runs arbitrary package scripts. |
|
Locks down dependency versions for publication. |
|
Uninstalls a package. |
Unsupported commands
These npm commands are not supported by CodeArtifact repositories.
Command | Description | Notes |
---|---|---|
Sets the access level on published packages. |
CodeArtifact uses a permission model that is different from the public npmjs repository. |
|
Adds a registry user account |
CodeArtifact uses a user model that is different from the public npmjs repository. |
|
Runs a security audit. |
CodeArtifact does not currently vend security vulnerability data. |
|
Manages npm hooks, including adding, removing, listing, and updating. |
CodeArtifact does not currently support any kind of change notification mechanism. |
|
Authenticates a user. This is an alias for |
CodeArtifact uses an authentication model that is different from the public npmjs repository. For information, see Authentication with npm. |
|
Signs out of the registry. |
CodeArtifact uses an authentication model that is different from the public npmjs repository. There is no way to sign out from a CodeArtifact repository, but authentication tokens expire after their configurable expiration time. The default token duration is 12 hours. |
|
Manages package owners. |
CodeArtifact uses a permissions model that is different from the public npmjs repository. |
|
Changes settings on your registry profile. |
CodeArtifact uses a user model that is different from the public npmjs repository. |
|
Searches the registry for packages matching the search terms. |
CodeArtifact supports limited search functionality with the list-packages command. |
|
Marks your favorite packages. |
CodeArtifact currently does not support any kind of favorites mechanism. |
|
Views packages marked as favorites. |
CodeArtifact currently does not support any kind of favorites mechanism. |
|
Manages organization teams and team memberships. |
CodeArtifact uses a user and group membership model that is different from the public npmjs repository. For information, see Identities (Users, Groups, and Roles) in the IAM User Guide. |
|
Manages your authentication tokens. |
CodeArtifact uses a different model for getting authentication tokens. For information, see Authentication with npm. |
|
Removes a package from the registry. |
CodeArtifact does not support removing a package version from a repository using the npm client. You can use the delete-package-version command. |
|
Displays the npm user name. |
CodeArtifact uses a user model that is different from the public npmjs repository. |