What does the at sign, or '@', mean as a prefix to an angular module as a package name?

…衆ロ難τιáo~ 提交于 2019-12-10 17:00:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!