csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.29k stars 458 forks source link

csscomb: command not found #267

Closed Tobishua closed 8 years ago

Tobishua commented 10 years ago

I installed csscomb on Ubuntu Server 12.04 with command "npm install csscomb -g", but when I try to execute "csscomb assets/css public/styles.css" I get the message "csscomb: command not found".

Thanks for your help and sorry for my bad English.

tonyganch commented 10 years ago

@Devil-Chrono, what is the result of running echo $NODE_PATH? And in what directory has csscomb been installed?

Tobishua commented 10 years ago

@tonyganch user@server ~ # echo $NODE_PATH After executing an empty string is output

user@server ~ # npm install csscomb -g npm http GET https://registry.npmjs.org/csscomb csscomb@0.0.0 /usr/local/lib/node_modules/csscomb

tonyganch commented 10 years ago

@Devil-Chrono, you should set NODE_PATH variable so Node knows where to search for installed packages. Try running export NODE_PATH="/usr/local/lib/node_modules". But anyway csscomb's version should be 3.0.0 and not 0.0.0

Tobishua commented 10 years ago

@tonyganch thanks, now when I run user@server ~ # echo $NODE_PATH output is: /usr/local/lib/node_modules I also tried to change registry, but still when installing csscomb receive the following: user@server ~ # npm install csscomb -g npm http GET http://isaacs.iriscouch.com/registry/csscomb npm http 200 http://isaacs.iriscouch.com/registry/csscomb csscomb@0.0.0 /usr/local/lib/node_modules/csscomb I can't understand what could be the problem...