Yarn – what a nice tool
I’m working on a new project.
So I just wanted to install the last version of bootstrap (bootstrap@4.0.0-beta) through npm(Node Package Manager) tool.
To install bootstrap as written in the documentation, you need to write the following line of code:
1 2 3 4 5 |
npm install bootstrap@4.0.0-beta |
Ok, I did that, but surprisingly got two warnings, see the following lines:
1 2 3 4 5 6 7 |
npm WARN bootstrap@4.0.0-beta requires a peer of jquery@>=3.0.0 but none is installed. You must install peer dependencies yourself. npm WARN bootstrap@4.0.0-beta requires a peer of popper.js@^1.11.0 but none is installed. You must install peer dependencies yourself. |
So right away after getting those warnings, I downloaded yarn via brew using the next code: (For Yarn installtion)
1 2 3 4 5 6 |
brew install yarn |
Thankfully, Yarn did a fantastic work, it downloaded the dependency packages that bootstrap depends on them (jquery@>=3.0.0, popper.js@^1.11.0), look at the text down to see the installation notes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
mdaka$ yarn add bootstrap@4.0.0-beta yarn add v1.1.0 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning "bootstrap@4.0.0-beta" has unmet peer dependency "popper.js@^1.11.0". [4/4] 📃 Building fresh packages... success Saved lockfile. success Saved 2 new dependencies. ├─ bootstrap@4.0.0-beta └─ bulma@0.5.3 ✨ Done in 108.24s. |
I hope you’re doing well, thanks for reading this post.
in order to be easy for developers to write programs in high-level languages.mysql backup