javascript - Understanding npm package @-prefix: @angular/router -
in angular component router documentation stumbled on npm command have never seen before , don't understand going on:
npm install @angular/router --save
what meaning of @angular/router
?
is whole string package name? dont find package when use search on npmjs.com. , commandline search return no such package:
npm search @angular/router :no match found "@angular/router"
so @angular/
kind of prefix mechanism in npm? , how work?
this new feature of npm called 'scoped packages'. allow npm packages namespaced - package starts @angular/
grouped @angular
folder in node_modules
.
the reason scoped packages don't show in public search because lot of them private packages created organizations using npm's paid services, , they're not comfortable opening search until can totally they're not going make public shouldn't public - legal perspective, pretty understandable.
for more information, see npm docs, or angular docs
Comments
Post a Comment