posm / OpenMapKitServer

OpenMapKit Server is the lightweight server component of OpenMapKit that handles the collection and aggregation of OpenStreetMap and OpenDataKit data.
http://openmapkit.org
BSD 3-Clause "New" or "Revised" License
46 stars 26 forks source link

error on npm start #108

Open husnimubarok opened 6 years ago

husnimubarok commented 6 years ago

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

mojodna commented 6 years ago

Do you have Jekyll installed? (gem install jekyll)

husnimubarok commented 6 years ago

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 methoddir' 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

' from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in eval' from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in
' `

mojodna commented 6 years ago

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.