npm i bootstrap@next 是什么?

问题描述 投票:0回答:2

当我在 angularjs 2 中配置 bootstrap 时,我在此链接中遇到了以下步骤,

如何将 bootstrap 添加到 angular-cli 项目

npm i bootstrap@next

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

npm i -S [email protected] 

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

还有--save with @next之类的,

npm i bootstrap@next --save

推荐哪个?还有我们如何确认已安装版本的版本?

angular-cli angular-bootstrap ng-bootstrap
2个回答
9
投票

在 NPM 包名称后使用

@
表示版本或标签

尝试

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

注意标签

next
适用于版本
4.0.0-alpha.6

view

命令的文档:
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
 文档链接:

-S, --save:包将出现在您的依赖项中。


0
投票
@next 指预发布或测试版

© www.soinside.com 2019 - 2024. All rights reserved.