

Select Public source, and then select npmjs from the dropdown menu. Select Upstream sources, and then select Add Upstream. Navigate to Feed settings by selecting the gear icon button. Select Artifacts, and then select your feed.

Make sure you check the Include packages from common public sources checkbox. You can use as an upstream source with new and existing feeds.

Upstreams give you the most flexibility to use a combination of scoped- and non-scoped packages in your feed, as well as scoped- and non-scoped packages from. This is the recommended way to use Azure Artifacts with npm. Enabling upstream sources also automatically enables saving of packages you use from the upstream source. The upstream source allows you to merge the contents of into your feed such that the npm client can install packages from both locations. If you want to use both private packages you've created and public packages from, we recommend using upstream sources. Scoped registries can only be used to install packages whose names begin with the scope prefix, so their usage is more restrictive. It also supports secondary scoped registries. The npm client is designed to work with a single primary registry (what Azure Artifacts calls a feed). Make sure you are logged in to the desired Packages npm registry.Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019 | TFS 2018 For other packages, npm will use the default registry (). a registry in Packages), all packages marked with will be published to/installed from this registry only.

For example, after you assign to a particular registry (e.g. An additional feature of scoped packages is the ability to assign scopes to registries. If another user or company publishes their own somepackagename to, there will be no conflicts. After you assign to a package, this scope will be added to the package name, e.g. Typically, this npm feature is used to group packages together and separate private and public packages. To avoid this limitation, we recommend that you use scoped npm packages. The npm client is able to work with only one registry at a time: It is not possible to simultaneously use both and a Space Packages nmp registry.
