使用 Bower 安装 BootStrap 4.0.0-beta.2 的问题
Issue on Installing BootStrap 4.0.0-beta.2 using bower
我在节点上执行了以下命令
bower install 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 安装 (related 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
我在节点上执行了以下命令
bower install 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 安装 (related 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