Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 无法在引导程序为4 Alpha 2的grunt dist上加载grunt/saint_browsers.yml_Ruby_Bash_Twitter Bootstrap_Gruntjs - Fatal编程技术网

Ruby 无法在引导程序为4 Alpha 2的grunt dist上加载grunt/saint_browsers.yml

Ruby 无法在引导程序为4 Alpha 2的grunt dist上加载grunt/saint_browsers.yml,ruby,bash,twitter-bootstrap,gruntjs,Ruby,Bash,Twitter Bootstrap,Gruntjs,我正试图编译一个自定义版本的引导v4 alpha2,但我一直得到2个错误。请帮忙。我在ruby是个笨蛋 我设法安装了 $ gem install bundler 事实上,引导下没有.bundle目录 从/node_modules/bootstrap运行以下操作失败 $ bundle install 以下操作也失败: $ grunt dist Loading "Gruntfile.js" tasks...ERROR >> Error: Unable to read "grunt

我正试图编译一个自定义版本的引导v4 alpha2,但我一直得到2个错误。请帮忙。我在ruby是个笨蛋

我设法安装了

$ gem install bundler
事实上,引导下没有.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.
解决方案似乎是删除
节点_模块
中的
引导
文件夹,克隆分支并在那里安装引导:

# 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

(以
#
开头的行是注释)

我也有同样的问题。我通过删除
node\u modules
中的bootstrap文件夹,并将其替换为
git克隆,解决了这个问题https://github.com/twbs/bootstrap/tree/v4-dev
。然后将cd放入文件夹并
npm安装
grunt dist