gpt4 book ai didi

angular-cli - 什么是 npm i bootstrap@next?

转载 作者:行者123 更新时间:2023-12-04 03:02:40 25 4
gpt4 key购买 nike

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

How to add bootstrap to an angular-cli project

npm i bootstrap@next

我明白如果我们运行以下命令,
npm i -S bootstrap@4.0.0-alpha.4 

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

还有什么 --save 与 @next 之类的,
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上面的文档链接:

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

关于angular-cli - 什么是 npm i bootstrap@next?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43327319/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com