作为包名称的 angular 模块的前缀,at 符号或“@”是什么意思?

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

在我的 `package.json' 文件中,似乎所有 Angular 依赖项都以 @ 为前缀。这是什么意思?例如

"dependencies": {
    "@angular/common": "2.0.0-rc.5",

为什么不像下面那样,没有@?

"dependencies": {
    "angular/common": "2.0.0-rc.5",

npm 有两种类型的模块:

  • 全局模块 - npm install mypackage
  • Scoped modules - npm 安装@myorg/mypackage

作用域是一种将相关包组合在一起的方式,也会影响 npm 处理包的一些方式。