-
Notifications
You must be signed in to change notification settings - Fork 65
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
Can't compile in directories with spaces in the name #45
Comments
Related to #11 maybe? |
It should take that into account https://github.com/imagemin/optipng-bin/blob/master/lib/install.js#L18. |
@pwfff, did this get fixed? |
This is still an issue for me when running with optipng-bin@2.0.1 and npm@2.1.5.
|
I am facing the same issue with Jenkins builds that put spaces in the working directories after updating to imagemin-contrib: 0.9.4 |
Same issue here when trying to install I can see it's missing quotes around the
|
I encountered this problem and was about to log it now. I'm a little discouraged to see it's been known about for almost a year with no action. We rely on this as a dependency of grunticon and this seems to be the only module in our dependency tree that doesn't handle spaces in directory names. Repro steps from my perspective were to create a package.json in a folder with a space in the name, adding a dependency to optipng-bin and running npm install. My output looked like this: C:\grunt test>npm install
‼ Command failed: C:\Windows\system32\cmd.exe /s /c "C:\grunt test\node_modules\optipng-bin\vendor\optipng.exe --version" ‼ optipng pre-build test failed
Please consider fixing this. It's too bad the whole hierarchy of the node dependencies fails based on the weakest link like this. |
The problem really starts here: Line 16 in 03e16d3
This really is a nasty bug. I wonder if it really is necessary to have an absolute path? Wouldn't it work to just use Also this should probably be fixed right in And on a final note this whole bug throws a lot of fancy errors, but what really fails is the check if the download worked after the download. So the download itself may have still worked leaving optipng-bin in a working state anyway. (As it was in my case) |
We're experiencing the exact same issue. Any eta on when this space-issue will be fixed? |
Same issue here. |
Fixed in optipng-bin v3.0.4. |
This issue doesn't appear to be entirely fixed - I'm getting this error as of optipng-bin version 3.1.4:
⚠ self signed certificate in certificate chain
I'm seeing the same error if I revert to version 3.0.4 as well. |
Error: spawn cmd ENOENT When I am running gulp server, I am getting the above message. |
@keithdeath1 @viveknaskar Read the issue title. You both post unrelated comments. |
@shinnn how so? AFAICT the output I'm seeing is very close to what the originator of this issue posted. |
Trying to install this via jenkins in a job that had spaces in the name (QA Tools):
The text was updated successfully, but these errors were encountered: