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: spawn jekyll.bat ENOENT #3

Closed
vanshika0109 opened this issue Jul 14, 2020 · 12 comments
Closed

Error: spawn jekyll.bat ENOENT #3

vanshika0109 opened this issue Jul 14, 2020 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@vanshika0109
Copy link
Collaborator

vanshika0109 commented Jul 14, 2020

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 #3 (comment)

Solution:

  1. Error: spawn jekyll.bat ENOENT #3 (comment)
  2. Error: spawn jekyll.bat ENOENT #3 (comment)
  3. Error: spawn jekyll.bat ENOENT #3 (comment)
@j143
Copy link
Owner

j143 commented Jul 14, 2020

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

@rebeccadias
Copy link
Collaborator

Yes sure .Thank You

@j143
Copy link
Owner

j143 commented Jul 14, 2020

Windows platform

Some background:

  1. Corresponding to on windows ('win32'), jekyll.bat should be utilized.

    const jekyll = process.platform === 'win32' ? 'jekyll.bat':'jekyll';

  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:
willianjusten/cards-jekyll-template#20

@j143
Copy link
Owner

j143 commented Jul 14, 2020

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

@rebeccadias
Copy link
Collaborator

@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/

@j143 j143 added the bug Something isn't working label Jul 14, 2020
@vanshika0109
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

@j143
Copy link
Owner

j143 commented Jul 14, 2020

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
Copy link
Collaborator

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
jekyll/jekyll#7000

@j143
Copy link
Owner

j143 commented Jul 16, 2020

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
Copy link
Collaborator Author

vanshika0109 commented Jul 16, 2020

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
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants