Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9224259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:16:29+00:00 2026-06-18T04:16:29+00:00

I tried installing node ver 0.8 on my ubuntu 12.04.It already has a node

  • 0

I tried installing node ver 0.8 on my ubuntu 12.04.It already has a node ver 0.6.12.The installation went suceesfully but when i type in

node --version

it still shows previous version.
i tried to remove previous version using sudo apt-get remove node but it says package node is not installed.But on trying node –version it shows 0.6.12
Why is it so??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:16:31+00:00Added an answer on June 18, 2026 at 4:16 am

    The problem is, you need to replace the new location for node with the old in your PATH variable. If you have an old manual install, find the old path to node by running echo $PATH. Then run this command:

    export PATH=${PATH%$OLD_NODE_PATH/bin*}$NEW_NODE_PATH/bin${PATH#$*OLD_NODE_PATH/bin}
    

    Or if you are using an install from the apt-get repository, just run:

    export PATH=$NEW_NODE_PATH/bin
    

    And that should fix your problem. But there is a better way! The best tool to manage your node.js environment is NVM. It exactly like RVM for ruby and similar to virtualenv for python, if you are familiar with those tools. It allows you to switch versions of node and download new ones extremely efficiently, and is easy to use. Download and install with:

    curl https://raw.github.com/creationix/nvm/master/install.sh | sh
    

    Then add this line to your bash (assuming you are running a bash shell) where it will be loaded (I prefer .bash_login for the personal stuff although it is not loaded by default):

    [[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh
    

    Source your bash script or restart the terminal then enter this command:

    nvm install 0.8.0 && nvm use 0.8.0
    

    This should set you up just fine. Although not necessary, you should probably get rid of all the other node installs, for the sake of tidiness. Check out their github page but to get you started here is a quick overview:

    nvm ls                   # list all installed versions of node
    nvm ls-remote            # list all available versions of node
    nvm install 0.9.8        # download and install node v0.9.8
    nvm use 0.8.0            # switch current environment to use node v0.8.0
    nvm alias default 0.8.0  # set 0.8.0 as default, you can use 'nvm use default' 
    nvm deactivate           # use system install of node
    nvm run default app.js   # run app.js with default node version
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i seem to have some trouble installing autopy.h https://github.com/msanders/autopy/#introduction i already tried the installation
I tried installing gtk2hs in many ways but have no luck so far installation
Has anyone tried installing SQL Server 2008 Developer on a machine that already has
I've tried installing RC1 must have been 5 times already and always run into
I tried installing orbited on vista . but I get following error when I
I tried to install the forever module for node.js on my windows server, but
I tried installing Djinn by using cabal but got the following error - $
Following the instructions here: https://github.com/ry/node/wiki/Building-node.js-on-Cygwin-(Windows ) I've tried installing on two machines, either of
I tried installing wordpress localy using WAMP - but it seems that some setup
I tried installing my old ASPImage from server Objects in my new server, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.