K
K
KIrill_Tkachev2014-07-23 10:23:45
Node.js
KIrill_Tkachev, 2014-07-23 10:23:45

How to run csscomb.js ?

I am using Ubuntu 14.04. Installed node.js, npm csscomb , the csscomb.js add-on for Sublime Text 3, set the path to the configuration file in the settings.
However, I'm already on the move csscomb assets/css. Since in response I get /usr/bin/env: node: No such file or directoryAs I understand it, the system does not see ccscomb? Tried to reinstall everything in order, but to no avail.
Sublime does not react in any way when pressing the ctrl + shift + c combination, it does not even write errors.
I suspect that the problem may lie in the fact that I am not familiar with node.js and may be missing some elementary steps, or just dumb. So, good people, help to understand.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
KIrill_Tkachev, 2014-07-23
@KIrill_Tkachev

Everything was solved by reinstalling all the components again, according to this guide:
1. Install nodejs on Ubuntu:
Open terminal and run this:

sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install nodejs-legacy

Verify that nodejs is installed correctly by running:
node --version
npm --version

If you don't see nodejs and npm vesion numbers (v0.10.25 and 1.3.24 respectively), something went wrong with the installation. Post the message from your terminal and so that we can have a look.
2. Install the csscomb itself globally
Verify:
Again, you should see csscomb version number (currently 3.0.0). Let us know if something went wrong here.
3. Install CSSComb Sublime Package
I assume you have Sublime Package Control installed. Open Sublime Text 3, and press Ctrl + Shift + P. Type install package and press enter. Then type CSSComb and press enter again. CSSComb package should be installed now.
Open any css file, select a few lines and press Ctrl + Shift + C to combine it.

A
Alexander Melekhovets, 2014-07-23
@Blast

The node executable is called nodejs. Head-on solution - create a symlink /usr/bin/node -> /usr/bin/nodejs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question