Configuring LESS on Mac OS X and PhpStorm 6.0.3

I tried to set up the watcher for LESS according to this article I found online: http://trevweb.me.uk/configuring-less-on-mac-os-x-and-phpstorm-6-0/

When I did the install for Node the final screen gave me this information:

Node was installed at

   /usr/local/bin/node

npm was installed at

   /usr/local/bin/npm

Make sure that /usr/local/bin is in your $PATH.


I can see the npm at /usr/local/bin/npm but when I try to confirm this by running the which command in the Terminal I get this repsonse [Note - I am not good with the Terminal and totally rely on help from others in this area]:

-bash-3.2$ $ which npm
-bash: $: command not found



When I look at the preference for the LESS watcher I have a /usr/bin/less but not a /usr/bin/lessc as per the image below from the article.

Can someone help me sort this out?



Attachment(s):
edit-watcher.jpg
2 comments

Hi there,

I can see the npm at /usr/local/bin/npm but when I try to confirm this by running the which command in the Terminal I get this repsonse [Note - I am not good with the Terminal and totally rely on help from others in this area]:

-bash-3.2$ $ which npm
-bash: $: command not found

I'm not a Mac user .. but it seems to me that you have type dollar sign as well -- you do not need it -- just type "which npm" (without quotes, obviously)

If you just type "npm" (again, without quotes) on it's own .. and it installed correctly, you should see the output similar to this:

Usage: npm <command>

where <command> is one of:
    add-user, adduser, apihelp, author, bin, bugs, c, cache,
    completion, config, ddp, dedupe, deprecate, docs, edit,
...


So .. double check all your steps and try again if required.

The LESS compiller file should be "lessc".

P.S.
In case you will not be able to successfully install and configure LESS File Watcher, have a look at one of these apps that can handle the compilation for you:

0

Hi Andriy,

Thanks for jumping in to help.

I guess I do not have things installed properly because this is the result I get when running the "which" command in the Terminal:


-bash-3.2$ which npm
-bash-3.2$


also:

-bash-3.2$ npm
-bash: npm: command not found


I'll make another attempt to get this installed. It's a bit confusing because of the reply from the first install attempt seemed to indicate that it did install:

Node was installed at

   /usr/local/bin/node

npm was installed at

   /usr/local/bin/npm

Make sure that /usr/local/bin is in your $PATH.
0

Please sign in to leave a comment.