j143 / systemds-website

Apache SystemDS website source
Apache License 2.0
0 stars 0 forks source link

Error: spawn jekyll.bat ENOENT #3

Closed vanshika0109 closed 4 years ago

vanshika0109 commented 4 years ago

Problem: I am trying to run gulp command on the PowerShell, but this error is prompting every time I try to execute it. Could anyone help to resolve this?

Screenshot: image

Causes: More info at https://github.com/j143/systemds-website/issues/3#issuecomment-658130013

Solution:

  1. https://github.com/j143/systemds-website/issues/3#issuecomment-658132186
  2. https://github.com/j143/systemds-website/issues/3#issuecomment-658279233
  3. https://github.com/j143/systemds-website/issues/3#issuecomment-660594707
j143 commented 4 years ago

Hi @rebeccadias - Can you provide help here?. Thank you.

rebeccadias commented 4 years ago

Yes sure .Thank You

j143 commented 4 years ago

Windows platform

Some background:

  1. Corresponding to on windows ('win32'), jekyll.bat should be utilized. https://github.com/j143/systemds-website/blob/7c9284a4655f25cc78dc8ab390f58292c927afbb/gulpfile.js#L9

  2. Check the process.platform as shown. image

  3. Based on 1, jekyll.bat should be available on the path.

Links related to this issue: https://stackoverflow.com/questions/21856861/running-jekyll-as-a-child-process-in-gulp-node

Linux platform

Links related to this issue: https://github.com/willianjusten/cards-jekyll-template/issues/20

j143 commented 4 years ago

Hi @vanshika0109 - can you see the above comment. This might give you an idea of how gulp command is invoking jekyll.

rebeccadias commented 4 years ago

@vanshika0109 - Hi, For windows 1.Make sure you have Ruby Installed. If not install it from here https://rubyinstaller.org 2.set up the ruby environment in the Path variables . image

3.Install jekyll with the help of this https://jekyllrb.com/docs/

vanshika0109 commented 4 years ago

Hi @vanshika0109 - can you see the above comment. This might give you an idea of how gulp command is invoking jekyll.

Yes, I can see it and I understand that๐Ÿ˜Š.

vanshika0109 commented 4 years ago

I have installed ruby but now I am not able to install jekyll. I have set the path also. image

j143 commented 4 years ago

Make sure you could spot jekyll.bat file in your installation.

Please, take walk for while and spend reading each comment for 5 minutes.

rebeccadias commented 4 years ago

I guess it is the RubyGems version incompatibility with native extension gems. https://stackoverflow.com/questions/26276207/error-failed-to-build-gem-native-extension-on-windows https://github.com/jekyll/jekyll/issues/7000

j143 commented 4 years ago

Hi @vanshika0109 - If you solved this issue please let others know. (may be you would want to thank the people for their interest in solving this issue.)

Thank you. ๐Ÿ˜ƒ

vanshika0109 commented 4 years ago

I am really sorry for the delay. I have solved the issue. The solutions you all provided helped me a lot. Thank you so much, both of you๐Ÿ˜Š.

vanshika0109 commented 4 years ago

I solved this error by running the command 'gem install jekyll'. The only reason why jekyll was not working was that it wasn't getting installed properly, this happened more than 2 times. After running this command I used the 'gulp' command again and it worked successfully. ๐Ÿ˜ƒ

image