npm i bootstrap@next 是什么?

what is npm i bootstrap@next?

当我在 angularjs 2 中配置 bootstrap 时,我遇到了 link、

中的以下步骤

npm i bootstrap@next

我明白如果我们运行下面的命令,

npm i -S bootstrap@4.0.0-alpha.4 

然后这将安装 bootstrap alpha 版本。但是如果我们给@next,将安装哪个版本?

还有什么 --save with @next like,

npm i bootstrap@next --save

推荐哪个?以及我们如何确认安装版本的版本?

在 NPM 包名称后使用 @ 表示版本或标签

试试 npm view bootstrap 你会得到这个输出:

note the tag next is for the version 4.0.0-alpha.6

docs for the view command: https://docs.npmjs.com/cli/view

{ name: 'bootstrap',
  description: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',
  'dist-tags': { latest: '3.3.7', next: '4.0.0-alpha.6' },
  versions: 
   [ '0.0.1',
     '0.0.2',
     '3.1.1',
     '3.2.0',
     '3.3.0',
     '3.3.1',
     '3.3.2',
     '3.3.4',
   ...

至于--save-S它们都是同一事物的别名 在这里阅读更多:https://docs.npmjs.com/cli/install 来自上面的 npm install 文档 link:

-S, --save: Package will appear in your dependencies.