2016-11-07 947 views

回答

10

注意:

我才意識到的設備之間的差異與npm installyarn

下面是我用了兩個命令:

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]未能解決此問題。

+0

是否沒有辦法讓紗線與紗線一起使用? – GameKyuubi

+0

實際上在github頁面上看到最新版本https://github.com/twbs/bootstrap/releases –

1

引導4目前正處於測試階段,所以你可以做到以下幾點:

yarn add [email protected]