Skip to content

Better error message for missing xmllint, libxml2, libxslt #169

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

Closed
rxaviers opened this issue Sep 4, 2013 · 3 comments
Closed

Better error message for missing xmllint, libxml2, libxslt #169

rxaviers opened this issue Sep 4, 2013 · 3 comments

Comments

@rxaviers
Copy link
Member

rxaviers commented Sep 4, 2013

Current error message is clueless when required dependency shared libraries aren't installed:

$ grunt build-xml-entries
Running "build-xml-entries:all" (build-xml-entries) task

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)

Shall we have a better (more descriptive / how to address) error message here?

@scottgonzalez
Copy link
Member

Proposed fix in jquery/grunt-jquery-content@8419b64. Waiting for confirmation from @rxaviers that this addresses his concern.

@rxaviers
Copy link
Member Author

Now we get:

Running "build-xml-entries:all" (build-xml-entries) task
>> Missing executable: xsltproc.
>> You must install libxml2.
>> Downloads are available from http://www.xmlsoft.org/downloads.html
<WARN> Task "build-xml-entries:all" failed. Use --force to continue. </WARN>

Aborted due to warnings.

Looks great to me.
👍

@sudheerj
Copy link

sudheerj commented Oct 6, 2016

I got the same error on "grunt deploy" command.Can you please let me know how to install libxml2 and libxslt libraries in windows environment.Thanks in advance..

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

No branches or pull requests

3 participants