dragonfly
dragonfly

Reputation: 3227

How to use yarn to install bootstrap 4 - libsass libraries

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

Upvotes: 18

Views: 43405

Answers (6)

Sam
Sam

Reputation: 2351

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

Upvotes: 6

Shafique Jamal
Shafique Jamal

Reputation: 1688

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]

Upvotes: 1

Pierre R-A
Pierre R-A

Reputation: 529

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

yarn add [email protected]

Upvotes: 0

dragonfly
dragonfly

Reputation: 3227

Just run:

yarn add [email protected]
yarn add gulp-sass --save-dev

Upvotes: 2

TORN
TORN

Reputation: 403

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.

Upvotes: 23

rld
rld

Reputation: 2763

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

yarn add [email protected]

Upvotes: -1

Related Questions