jekyll 安装问题,恳请大神支招

2015-06-03 23:13:32 +08:00
 WXB506
1.今天在ubuntu14.04上使用sudo gem install jekyll安装jekyll失败,ruby的版本是1.9.3。
2.在使用sudo apt-get install jekyll安装好jekyll后,jekyll new myblog失败。
有没有人遇到过这种情况,欢迎赐教,感激不尽
2721 次点击
所在节点    问与答
5 条回复
ChiangDi
2015-06-03 23:36:36 +08:00
贴出错信息
WXB506
2015-06-03 23:45:09 +08:00
:~$ jekyll new myblog
/var/lib/gems/1.9.1/gems/execjs-2.5.2/lib/execjs/runtimes.rb:48:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /var/lib/gems/1.9.1/gems/execjs-2.5.2/lib/execjs.rb:5:in `<module:ExecJS>'
from /var/lib/gems/1.9.1/gems/execjs-2.5.2/lib/execjs.rb:4:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/coffee-script-2.4.1/lib/coffee-script.rb:1:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/jekyll-coffeescript-1.0.1/lib/jekyll-coffeescript.rb:2:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:46:in `block in gracefully_require'
from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:44:in `each'
from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:44:in `gracefully_require'
from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/lib/jekyll.rb:166:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/bin/jekyll:6:in `<top (required)>'
from /usr/local/bin/jekyll:23:in `load'
from /usr/local/bin/jekyll:23:in `<main>'
ChiangDi
2015-06-03 23:52:16 +08:00
第一条错误就提示你了 Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
chloerei
2015-06-03 23:58:49 +08:00
sudo apt-get install nodejs
superalsrk
2015-06-04 10:54:30 +08:00
hexo大发好

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/195940

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX