Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm trying to compile a custom version of bootstrap v4 alpha2 but I keep getting 2 errors. Please help. I'm a noob at ruby.

I managed to install

$ gem install bundler

In fact, there is no .bundle directory under bootstrap

Running the following fails, from /node_modules/bootstrap

$ bundle install

The following also fails:

$ 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.
like image 485
Stalin Kay Avatar asked Dec 16 '15 20:12

Stalin Kay


1 Answers

As @neilsimp1 commented a solution seems to be to delete the bootstrap folder in node_modules, do a clone of the branch and install Bootstrap there:

# 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

(lines starting with # are comments)

like image 167
Ionică Bizău Avatar answered Nov 06 '22 23:11

Ionică Bizău