How to use yarn to install bootstrap 4 - libsass libraries

I am trying to use yarn for my last project. How to install bootstrap 4 - libsass libraries using yarn

+5
source share
5 answers

Attention:

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

Here are the two commands I used:

 yarn add bootstrap@4.0.0-alpha.6 --dev npm install bootstrap@4.0.0-alpha.6 --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 through yarn, this file is missing. Even if changing bootstrap@ ^4.0.0-alpha.6 to bootstrap@4.0.0-alpha.6 in package.json did not fix this problem.

+10
source

Just run:

 yarn add bootstrap@4.0.0-alpha.6 yarn add gulp-sass --save-dev 
+2
source

here at https://packagist.org/packages/twbs/bootstrap

 yarn add bootstrap@4.0.0-alpha.6 
+1
source

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

 yarn add bootstrap@4.0.0-beta 
+1
source

To find the latest installation instructions, see github repo:

https://github.com/twbs/bootstrap

As of the time of publication, instructions for installing the latest beta version of Bootstrap v4 through yarn:

 yarn add bootstrap@4.0.0-beta.2 
+1
source

Source: https://habr.com/ru/post/1259422/


All Articles