sublimetext2 - Setting up Less-Build in sublime text 2 - Mac OS X -


i've browsed , installed following package

https://github.com/berfarah/less-build-sublime/blob/master/readme.md

i've created file called style.less , inserted following code (just experiment)

@bgcolor: red;  body { background: @bgcolor; } 

after saving file , hitting command + b build less file.

i'm expecting style.css created when hit command + b

instead, message on console saying:

[errno 2] no such file or directory [cmd: [u'lessc', u'/users/staff/desktop/site/day2/css/style.less', u'/users/staff/desktop/site/day2/css/style.css', u'--verbose']] [dir: /users/staff/desktop/paperbusiness/day2/css] [path: /usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin] [finished]

what doing wrong?

is there need doing in packages/less-build/changelessbuildtype.sh

it contains:

#!/bin/bash ps3='please enter choice: ' options=("normal" "directory rewrite" "quit") select opt in "${options[@]}"     case $opt in         "normal")             rm less.sublime-build             ln -s less-normal.sublime-build-choice less.sublime-build             break;             ;;         "directory rewrite")             rm less.sublime-build             ln -s less-rewritedir.sublime-build-choice less.sublime-build             break;             ;;         "quit")             break             ;;         *) echo invalid option;;     esac done 

thank reading this. appreciated :)

i had same issue when install less on mac os x mountain lion, solved installing less this:

sudo npm install --global less  

instead

npm install --global less  

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -