twitter-bootstrap 使用 NPM 安装 Bootstrap 4 alpha
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33465890/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing Bootstrap 4 alpha with NPM
提问by DamirDiz
How can I specifically install the Bootstrap 4 Alpha using NPM. Using npm install bootstraponly installs the current Version 3.3.5.
如何使用 NPM 专门安装 Bootstrap 4 Alpha。使用npm install bootstrap仅安装当前版本 3.3.5。
回答by Manoj H L
You can download bootstrap v4 alphaversion using the git branch v4-dev
您可以bootstrap v4 alpha使用 git 分支下载版本v4-dev
npm install [email protected]
or
或者
npm install git://github.com/twbs/bootstrap.git\#v4-dev
or
或者
npm install https://github.com/twbs/bootstrap.git\#v4-dev
or
或者
npm install twbs/bootstrap#v4-dev
回答by jhoanna
回答by Kinko
You can also install by using the @nexttag:
您还可以使用@next标签进行安装:
npm install bootstrap@next --save
The @next tag is used by some projects to identify the upcoming version.
某些项目使用@next 标记来标识即将发布的版本。
One can view the current tag <=> version mapping by using
可以通过使用查看当前标签 <=> 版本映射
npm view bootstrap dist-tags
or
或者
npm dist-tag ls bootstrap
and all released bootstrap versions with
以及所有已发布的引导程序版本
npm view bootstrap versions
Tags must share a namespace with version numbers, because they are specified in the same slot:
npm install <pkg>@<version>vsnpm install <pkg>@<tag>.
标签必须与版本号共享一个命名空间,因为它们在同一个槽中指定:
npm install <pkg>@<version>vsnpm install <pkg>@<tag>。
回答by idancali
That doesn't seem to work for me using Node v5 but it does work if you get the tarball directly via http. Downloads really fast too.
这对我使用 Node v5 似乎不起作用,但如果您直接通过 http 获取 tarball,它确实起作用。下载也非常快。
npm install https://github.com/twbs/bootstrap/tarball/v4-dev
Or by adding this line to your package.jsonfile, in the dependenciessection:
或者通过将此行添加到您的package.json文件的dependencies部分:
"bootstrap": "https://github.com/twbs/bootstrap/tarball/v4-dev"
It will install successfully:
它将安装成功:
└── [email protected]

