问题
In my `package.json' file, it seems that all the Angular depedencies are prefixed by @. What does this mean? E.g.
"dependencies": {
"@angular/common": "2.0.0-rc.5",
Why not just as below, with no @?
"dependencies": {
"angular/common": "2.0.0-rc.5",
回答1:
npm has two types of modules:
- Global modules - npm install mypackage
- Scoped modules - npm install @myorg/mypackage
Scopes are a way of grouping related packages together, and also affect a few things about the way npm treats the package.
来源:https://stackoverflow.com/questions/39050406/what-does-the-at-sign-or-mean-as-a-prefix-to-an-angular-module-as-a-packag