update old node.js to new version doesn't work

前端 未结 1 752
-上瘾入骨i
-上瘾入骨i 2020-12-22 06:24

My linux system used to install a old version node.js environment 0.8.14, now updated it to latest node.js through this

sudo apt-get install python-software-         


        
相关标签:
1条回答
  • 2020-12-22 07:07

    I'm willing to bet you installed the previous version through apt-get without first adding Chris Lea's PPA. The standard Ubuntu repositories have an old version of node.

    You'll need to uninstall this old version before you can get the new one:

    sudo apt-get --purge remove nodejs # Remove the package itself
    sudo apt-get autoremove # Remove any unneeded dependencies
    sudo apt-get update
    sudo apt-get install nodejs
    
    0 讨论(0)
提交回复
热议问题