无法使用 Bootstrap 4 Alpha 2 在 grunt dist 上加载 grunt/sauce_browsers.yml

Cannot load grunt/sauce_browsers.yml on grunt dist with Bootstrap 4 Alpha 2

我正在尝试编译 bootstrap v4 alpha2 的自定义版本,但我不断收到 2 个错误。请帮忙。我是 ruby.

的菜鸟

我成功安装了

$ gem install bundler

其实bootstrap下没有.bundle目录

运行 以下失败,来自 /node_modules/bootstrap

$ bundle install

以下也失败了:

$ grunt dist


Loading "Gruntfile.js" tasks...ERROR
>> Error: Unable to read "grunt/sauce_browsers.yml" file (Error code: ENOENT).
Warning: Task "dist" not found. Use --force to continue.

因为 一个解决方案似乎是删除 node_modules 中的 bootstrap 文件夹,复制该分支并在其中安装 Bootstrap:

# 1. Delete the bootstrap directory
cd node_modules
rm -rf bootstrap

# 2. Clone the repo
git clone https://github.com/twbs/bootstrap --depth 1

# 3. Switch to v4
cd bootstrap
git checkout v4-dev

# 4. Install and build
npm install
grunt dist

(以#开头的行是注释)