-
Notifications
You must be signed in to change notification settings - Fork 577
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
Result "ERROR: The specified config file doesn’t exist or is unreadable:" when config file does exist and is readable #428
Comments
I installed v0.8.0:
and then the command given above worked. Looks like it's a bug specific to version 1.0.0 |
I got the same error when using html-minifier on Travis where version 1.0.0 was installed. It was installed through npm -g html-minifier.
It failed with this error:
My config file is:
The travis build is here: I updated html-minifier on my local debian (unstable) and it worked fine with 1.0.0. So perhaps its something special with the Travis environment. I installed version 0.8.0 at Travis which worked fine (see the build): |
@terry-webfox @mosbth since you two have reproducible environments, may I ask you to:
|
@alexlamsl I can confirm that version 1.1.1 gives the same error on Travis. I'm not able to comment out the line on Travis, so I can not try to see if the problem exists after that. |
@mosbth can you run If so, try |
@mosbth I meant to say |
It looks like this: Complete build: The interesting part when Travis runs the test:
The script test.js:
Same result rerunning the build using fs.R_OK So, hey, perhaps just old version of node which does not have this method available.
|
@mosbth definitely not available on that version of Node.js @kangax I don't think we need the call to this, plus there are related issues that imply this is not entirely reliable. Would it be okay to remove a call to this altogether? |
What's the purpose of that call in the first place? |
AFAICT, it is to check if the configuration file is accessible - which I think is duplicating the exception to be potentially thrown by |
Ok, let's remove it then. |
Running this command from within my project folder:
gives error:
The config file does exist and is readable, so surely this error shouldn't occur?
Am using v1.0.0 from Linux Mint
The text was updated successfully, but these errors were encountered: