This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Aug 2, 2013 5:50 PM by Joe Sonne  
Joe Sonne Newbie 6 posts since
Nov 30, 2011
Currently Being Moderated

Aug 1, 2013 10:01 PM

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?

Attachments:
Andriy Bazanov Master 3,968 posts since
May 28, 2010
Currently Being Moderated
Aug 2, 2013 12:08 AM in response to: Joe Sonne
Re: Configuring LESS on Mac OS X and PhpStorm 6.0.3

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:

More Like This

  • Retrieving data ...