I'm trying to use yarn for my latest project. How to install bootstrap 4 - libsass libraries using yarn
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.
--dev
)? The resources are needed at runtime. –
Undertrick 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
Just run:
yarn add [email protected]
yarn add gulp-sass --save-dev
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]
Bootstrap 4 is now in beta, so you can do the following:
yarn add [email protected]
here in this https://packagist.org/packages/twbs/bootstrap
yarn add [email protected]
© 2022 - 2024 — McMap. All rights reserved.