eval' from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in
Open husnimubarok opened 6 years ago
Do you have Jekyll installed? (gem install jekyll
)
yes but it return:
`root@vultr:~/OpenMapKitServer# npm start
open-map-kit-server@0.11.0 start /root/OpenMapKitServer jekyll build -s jekyll -d pages && node server.js
/usr/local/rvm/gems/ruby-2.3.1/gems/jekyll-3.6.2/exe/jekyll:6:in <top (required)>': undefined local variable or method
dir' for main:Object (NameError)
from /usr/local/rvm/gems/ruby-2.3.1/bin/jekyll:23:in load' from /usr/local/rvm/gems/ruby-2.3.1/bin/jekyll:23:in
eval' from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in
That looks to me like a screwed up RVM or Jekyll installation. I'd have a look at the jekyll paths it's complaining about to see if anything looks weird.
I just tried installing jekyll-3.6.2 on ruby-2.3.1 (I use rbenv, but it shouldn't matter) and it worked for me.
npm ERR! Failed at the open-map-kit-server@0.11.0 start script 'jekyll build -s jekyll -d pages && node server.js'. npm ERR! This is most likely a problem with the open-map-kit-server package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! jekyll build -s jekyll -d pages && node server.js