-
Notifications
You must be signed in to change notification settings - Fork 13
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 you tell me how I can compile less file? on widnows #2
Comments
Hi, Syed. I am using Windows 7 to develop, too. I use lessc installed via nodejs and npm. It works fine. My environment:
I have installed less in global.
The cause I think is that lessc called from PHP is different from lessc called from command prompt, such as system environment variable issue. Does it work if you change lessc command to absolute path? And, can you get value in $output after exec? If you use lessc 1.4.0, lessc options are necessary. |
C:\Users\Syed>npm version { http_parser: '1.0', C:\Users\Syed\AppData\Roaming\npm\lessc -> C:\Users\Syed\AppData\Roaming\npm\nod less@1.3.3 C:\Users\Syed\AppData\Roaming\npm\node_modules\less @wizardg My environment: node v0.10.13 npm 1.3.4 lessc 1.3.3 (LESS Compiler) [JavaScript] I have:
@wizardg I have installed less in global. npm install -g less@1.3.3 Did same (for 1.4 and 1.3) @wizardg The cause I think is that lessc called from PHP is different from lessc called from command prompt, such as system environment variable issue. The issue I am seeing is php is not recognizing "lessc" as a command at all, I can execute other commands like "node --help" and in response it sends me output, and "php --help" and "npm --help" works as well but no response in case of "lessc --help" if I execute this command directly in windows command prompt it works (which I think because of this file) C:\Users\Syed\AppData\Roaming\npm\lessc.cmd
see if you understand whats my issue. Note: The reason I a following your pattern is nodejs lessc compiles way much faster then lessphp compiler on my machine so I can see instant preview :D. |
Hi Wizardg,
I am using your app on my windows OS and wamp server, and I am able to make it work on my system, but I have issue with compiling less files, exec command doesn't work on my system, if I use same command on my terminal (windows command prompt), it works fine, only in php its not working, can you tell me how I can make it work on windows.
I have nodejs installed and also less is working fine
here is a stackexchange question I posted earlier.
http://stackoverflow.com/questions/17555100/php-compile-less-file-using-lessc-via-nodejs-on-windows-7
Thanks.
The text was updated successfully, but these errors were encountered: