How to use yarn to install bootstrap 4 - libsass libraries
Asked Answered
Z

6

18

I'm trying to use yarn for my latest project. How to install bootstrap 4 - libsass libraries using yarn

Zeena answered 7/11, 2016 at 21:10 Comment(0)
C
23

Attention:

I just realized a difference between the installations with npm install and yarn.

Here are the two commands I used:

yarn add [email protected] --dev
npm install [email protected] --save-dev

The correct/current version of bootstrap 4.0.0-alpha.6 contains this file:

/node_modules/bootstrap/scss/_tags.scss

Installed with npm, this file exists as expected. But installed via yarn, this file is missing. Even if changing bootstrap@^4.0.0-alpha.6 to [email protected] in package.json didn't fix this issue.

Camail answered 6/1, 2017 at 10:30 Comment(3)
actually see the last version at the github page github.com/twbs/bootstrap/releasesMaurey
Is bootstrap intended to be a development dependency (--dev)? The resources are needed at runtime.Undertrick
@Undertrick I would say no because the stylings need to be there in production mode as wellRowell
R
6
yarn add bootstrap@4

installs the latest bootstrap 4 version (4.6.0 at aug/'21)


And you can always use

yarn add your_package@^

To view all the versions that are available

Rowell answered 26/4, 2020 at 19:49 Comment(0)
Z
2

Just run:

yarn add [email protected]
yarn add gulp-sass --save-dev
Zeena answered 7/11, 2016 at 21:23 Comment(0)
H
1

To find the most current installation instructions, see github repo:

https://github.com/twbs/bootstrap

As of the time of this posting, instructions for installing the latest beta version of Bootstrap v4 via yarn is:

yarn add [email protected]
Hardheaded answered 22/11, 2017 at 17:52 Comment(0)
T
0

Bootstrap 4 is now in beta, so you can do the following:

yarn add [email protected]
Teratology answered 19/9, 2017 at 8:28 Comment(0)
M
-1

here in this https://packagist.org/packages/twbs/bootstrap

yarn add [email protected]
Mannino answered 8/5, 2017 at 21:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.