簡體   English   中英

使用Bower安裝BootStrap 4.0.0-beta.2的問題

[英]Issue on Installing BootStrap 4.0.0-beta.2 using bower

我在Node上執行了以下命令

Bower安裝bootstrap#4.0.0-beta.2

並收到以下錯誤

bower not-cached    https://github.com/twbs/bootstrap.git#4.0.0-beta.2
bower resolve       https://github.com/twbs/bootstrap.git#4.0.0-beta.2
bower download      https://github.com/twbs/bootstrap/archive/v4.0.0-beta.2.tar.gz
bower extract       bootstrap#4.0.0-beta.2 archive.tar.gz
bower EMALFORMED    Failed to read 
C:\Users\taddesee\AppData\Local\Temp\ALPHA-
taddesee\bower\ca4c50b905dc21ea17a10549a6f5944f-14096-5CqNOR\bower.json

Additional error details:
Unexpected token @ in JSON at position 0

如果有人以前遇到過這個問題,可以幫助我嗎? 謝謝您的幫助。

Bootstrap v4將不再可以通過Bower( 相關的GitHub pull request )安裝; 而是使用Yarn或NPM安裝它。

# With NPM
$ npm install --save bootstrap@v4.0.0-beta.2

# With Yarn
$ yarn add bootstrap@v4.0.0-beta.2

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM