Jekyll "serve" command error: Import file not found or unreadable: base. Loading paths: on line 46

Firstly, I have little Linux experience and no Ruby experience, however I have googled and cannot find an area like what I am getting. Any help is appreciated. I am sorry if this is not a good place to post this. I installed Jekyll with the following and only the following commands on Ubuntu 15.04 64 bit:

sudo apt-get install ruby-full
gem update --system
gem install jekyll
cd /home/william
mkdir CS
cd CS/
gem install execjs
sudo apt-get install nodejs
jekyll new kx8w

New jekyll site installed in /home/william/KX8W.

jekyll serve

      

The error returned by Jekyll looks like this:

Configuration file: none
            Source: /home/william/CS
       Destination: /home/william/CS/_site
      Generating... 
     Build Warning: Layout 'post' requested in KX8W/_posts/2015-05-12-welcome-to-jekyll.markdown does not exist.
     Build Warning: Layout 'page' requested in KX8W/about.md does not exist.
     Build Warning: Layout 'default' requested in KX8W/index.html does not exist.
  Conversion error: Jekyll::Converters::Scss encountered an error while converting 'KX8W/css/main.scss':
                    File to import not found or unreadable: base. Load paths: on line 46
    jekyll 2.5.3 | Error:  File to import not found or unreadable: base.
Load paths:
   on line 46

      

+3


source to share


1 answer


Welcome to Linux! You were close, but jekyll serve

make sure you are in the correct directory before starting .

At startup:

jekyll new kx8w

      

It creates a new site in the directory you are currently in. The output line tells you where it was placed (ie "/ home / william / KX8W"). You must be in this directory to run jekyll. So do:



cd /home/william/KX8W

      

Once you do that, it jekyll serve

will work as expected.


Note that for some reason jekyll has built the site in "/ home / william / KX8W" instead of "/ home / william / CS / KX8W" which I expected given your command list. This is likely due to the installations you made or there may have been other changes. Nothing to worry about, just something to worry about. The biggest trick is to just make sure that after running the command, jekyll new cool_new_site

you then change to that directory with cd cool_new_site

before running jekyll serve

.

+8


source







All Articles