Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on npm start #108

Open
husnimubarok opened this issue Dec 15, 2017 · 3 comments
Open

error on npm start #108

husnimubarok opened this issue Dec 15, 2017 · 3 comments

Comments

@husnimubarok
Copy link

npm ERR! Failed at the [email protected] 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
Copy link
Member

mojodna commented Dec 15, 2017

Do you have Jekyll installed? (gem install jekyll)

@husnimubarok
Copy link
Author

yes but it return:

`root@vultr:~/OpenMapKitServer# npm start

[email protected] 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

'
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
Copy link
Member

mojodna commented Dec 15, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants