How to use yarn to install bootstrap 4 - libsass libraries

dragonfly picture dragonfly · Nov 7, 2016 · Viewed 37.3k times · Source

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

Answer

TORN picture TORN · Jan 6, 2017

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.