Install Node.js on Ubuntu

后端 未结 18 1057
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 04:39

I\'m trying install Node.js on Ubuntu 12.10, but the terminal shows me an error about lost packages. I tried with this:

sudo apt-get install python-software-         


        
18条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 05:00

    Follow the instructions given here at NodeSource which is dedicated to creating a sustainable ecosystem for Node.js

    For Node.js >= 4.X

    # Using Ubuntu
    curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
    sudo apt-get install -y nodejs
    
    # Using Debian, as root
    curl -sL https://deb.nodesource.com/setup_4.x | bash -
    apt-get install -y nodejs
    

提交回复
热议问题