JetBrains Space
 

Use an npm Registry with npmjs.com

Last modified: 18 August 2021

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

After this, all scoped packages will be associated with this registry.

To install such a package, run: