WebFaction
Community site: login faq

Follow-up question on this guide explaining how to install lessc and node.

Using the guide I successfully installed node.js. Unfortunately the latter part explaining how to install lessc doesn't work anymore, probably outdated:

> cd $HOME/src git clone
> 'https://github.com/cloudhead/less.js.git'
> cd less.js/ make

Yields: make: *** No targets specified and no makefile found. Stop.

Any clue on to how to get this to work?

I have tried the following, not the expected/required result: less/lessc using npm install less -g Django app now gives this error: /usr/bin/env: node: No such file or directory

Any help would be appreciated!

asked 22 Aug '15, 11:46

nl_sander
1316
accept rate: 0%

edited 23 Aug '15, 09:26

While Googling I've found several posts suggesting I should create a symlink like so:

which node
ln -s [[node_path]] /usr/bin/node

However I do not have permission to do so. Any workaround?

(See https://github.com/django-compressor/django-compressor/issues/99#issuecomment-1761848)

(22 Aug '15, 13:17) nl_sander

Node.js installation has been simplified since they start providing linux binaries.

I've recently installed node on a CentOS 6 machine, using the following steps:

mkdir -p ~/opt/node
wget https://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz
tar xzf node-v0.12.7-linux-x64.tar.gz --strip 1 -C ~/opt/node

So I've got both the npm and node executables at the ~/opt/node/bin directory. To easily access them you need to add that directory to your PATH variable and export it. You can do that by executing the following commands:

echo -e "\nexport PATH=$HOME/opt/node/bin:$PATH" >> ~/.bash_profile
source ~/.bash_profile

You should now be able to run npm install -g less and the lessc executable should be located in your ~/opt/node/bin directory.

permanent link

answered 22 Aug '15, 14:20

iliasr ♦♦
2.1k14
accept rate: 35%

edited 22 Aug '15, 14:22

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×3
×3
×3

question asked: 22 Aug '15, 11:46

question was seen: 1,545 times

last updated: 25 Aug '15, 11:20

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM