Outdated "Node" Package in Debian
Dealing with the 'ax25-node' problem in Ubuntu
19 November 2013
In attempting to install and use node
today, I ran into an interesting conflict with Ubuntu/Debian.
Finding the Problem
- I wanted to compile a
less
file to acss
file for a web page (actually this blog). This requires installing theless
package fornode.js
usingnpm
(the Node Package Manager). - After installing the
less
usingnpm
, I tried to run it. It did nothing. By nothing, I mean that it truly did not do a single thing. On the command line, it looked like this:
Nothing brought a response, nothing at all. Not
lessc --help
, notlessc -v
, not anything. I was perplexed, since I’ve never had a program be totally unresponsive to anything at all.
- Running a “which lessc” tells me where lessc is, and examinging it shows me that it’s a totally valid
node
program. - The next logical step is to check if
node
is working correctly. As it turns out, runningnode
on the command line is totally non-responsive. - Checking where
node
is and what it is, I see the following:
- It seems I’ve found the problem!
What Exactly is the Problem?
The problem is that many node
programs (including lessc
) assume that the node
interpreter can be accessed via the command node
. However, on my system (and maybe many others) it turns out that the system command node
is linked to another program, ax25-node
.
Fixing the Problem
Since ax25-node
is a package that’s for use with HAM Radio, I feel it’s safe to change that link from ax25-node
to nodejs
. I do that with the following command:
With that done, node
and lessc
now work properly.