我正在嘗試爲我的最新項目使用紗線。如何安裝引導4 - 使用紗如何使用yarn來安裝bootstrap 4 - libsass庫
5
A
回答
10
注意:
我才意識到的設備之間的差異與npm install
和yarn
。
下面是我用了兩個命令:
yarn add [email protected]-alpha.6 --dev
npm install [email protected] --save-dev
正確的/當前版本4.0.0引導,alpha.6包含這個文件:
/node_modules/bootstrap/scss/_tags.scss
安裝了NPM,該文件按預期存在。但通過紗線安裝,此文件丟失。即使在中更改[email protected]^4.0.0-alpha.6
至[email protected]
未能解決此問題。
2
只要運行libsass庫:
yarn add [email protected]
yarn add gulp-sass --save-dev
1
這裏,在這個https://packagist.org/packages/twbs/bootstrap
yarn add [email protected]
1
引導4目前正處於測試階段,所以你可以做到以下幾點:
yarn add [email protected]
1
要查找最新的安裝說明,請參閱github上回購:
https://github.com/twbs/bootstrap
截至時間通過紗線安裝Bootstrap v4的最新beta版本的說明是:
yarn add [email protected]
相關問題
- 1. 使用Bower安裝Bootstrap 4 Beta
- 2. 如何安裝grunt-sass來與libsass一起工作
- 3. 如何使用JSPM安裝bootstrap datepicker
- 4. 安裝grunt-sass時使用緩存的libsass二進制文件
- 5. 我如何用div來包裝bootstrap cols?
- 6. 如何使用pyparseface庫 - 安裝?
- 7. 如何使用/安裝gps python庫
- 8. 如何使用Bower安裝OpenLayers等庫?
- 9. 如何使用php安裝數據庫?
- 10. Angular 2/4 - 如何用Gsap安裝ScrollMagic?
- 11. 如何安裝庫
- 12. 如何安裝庫?
- 13. 安裝Yarn Ubuntu 16.04(Linux Mint 18.1)
- 14. 如何使用Bootstrap 4(3)Mixins
- 15. 如何啓用bootstrap 4 flex?
- 16. 使用yarn + webpack從叉子安裝npm包 - 無法解析'./dist/
- 17. 使用Bower安裝bootstrap-sass和bootswatch
- 18. 使用Composer爲Symfony2安裝Jasny/Bootstrap
- 19. 我們如何在angular2或4中使用bootstrap-sweetalert庫?
- 20. 如何安裝Bootstrap主題生成器
- 21. 通過Grunt安裝Bootstrap。如何運行NPM安裝
- 22. Bootstrap 4 - 無列封裝
- 23. 如何在Solr 4中安裝JTS?
- 24. 安裝bootstrap到grails
- 25. 使用Yarn安裝包時,「不正確的對等關係」是什麼意思?
- 26. Mac,Rails 4:使用`freetds`安裝`tiny_tds` gem
- 27. 如何將ASP.NET MVC 4與預先安裝的JQuery UI庫一起使用
- 28. Bootstrap 4卡包裝與包裝元素
- 29. 如何使用Rails 5和Bootstrap獲得bootstrap助手4
- 30. 安裝和使用OnBarcode庫
是否沒有辦法讓紗線與紗線一起使用? – GameKyuubi
實際上在github頁面上看到最新版本https://github.com/twbs/bootstrap/releases –