On Dec 19, 2014, at 12:46 PM, Carlos Carcamo wrote:

> I have a little problem with my nodejs installation, I had the
> v0.10.26 of node.js and today I installed the last stable version
> v0.10.33, but the command line shows the older one:
> 
> $ node -v
> v0.10.26
> 
> but I notice something curious when installing, it showed something like:
> /usr/bin/node refers to /usr/bin/js, don't remember exactly what it
> showed, but now if i do the following:
> 
> $js -v
> v0.10.33
> 
> It seems that js is pointing to my last version of node.js, I don't
> know how node.js was installed in this pc, but for update node.js i
> did:
> 
> $ sudo apt-add-repository ppa:chris-lea/node.js
> $ sudo apt-get update
> $ sudo apt-get install nodejs
> 
> My bet is that the previous nodejs was installed from source code and
> compiled, now my question is, how can I fix this little problem?

I would suggest that for every way in which you installed nodejs, uninstall it. 
For example, if you installed nodejs using your package management system, use 
it to uninstall nodejs. If you built nodejs from source, go back to the source 
code of that version of nodejs and run "make uninstall" in the source 
directory. Now you should not have any version of nodejs installed anywhere.

Next, decide how you want to install nodejs from now on (be it from source, or 
by using your package management system). Install nodejs using that method. Use 
that method from now on.

If your package management system installs the node binary as "js", that's 
weird and bound to cause problems. You can create a symlink "node" (in the bin 
directory of the prefix in which you installed nodejs) pointing to "js" to fix 
this. You could also ask the maintainers of your package management system why 
they have done this weird thing.


-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/0CCBEEF5-8D9B-43CE-8711-AA866DE25C74%40ryandesign.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to