С тех пор были загружены полные инструкции по установке здесь с помощью Nodesource. Он скопирован ниже для вашей справки. Инструкции по обновлению до последней версии те же.
Если вам не нравится curl ... | sudo bash -
тогда вы можете следовать инструкции по эксплуатации, который расскажет вам , как добавить Node.js хранилище для /etc/apt/sources.list.d/
себя.
ПРИМЕЧАНИЕ: Если вы используете Ubuntu Precise или Debian Wheezy, возможно, вам захочется прочитать о бегущий Node.js >= 6.x в старых дистрибутивах
Node.js Текущий:
# Using Ubuntucurl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -fsSL https://deb.nodesource.com/setup_current.x | bash -apt-get install -y nodejs
Node.js v13.x:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_13.x | bash -apt-get install -y nodejs
Node.js v12.x:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_12.x | bash -apt-get install -y nodejs
Node.js v11.x:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_11.x | bash -apt-get install -y nodejs
Node.js v10.x:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_10.x | bash -apt-get install -y nodejs
Node.js v9.x:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_9.x | bash -apt-get install -y nodejs
Node.js v8.x:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_8.x | bash -apt-get install -y nodejs
Node.js v7.x:
ПРИМЕЧАНИЕ: Пакеты Debian Wheezy и Ubuntu Precise являются НЕ доступно для этого выпуска. Пожалуйста, обратитесь бегущий Node.js >= 4.x в старых дистрибутивах
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_7.x | bash -apt-get install -y nodejs
Node.js v6.x:
ПРИМЕЧАНИЕ: Если вы используете Ubuntu Precise или Debian Wheezy, возможно, вам захочется прочитать о бегущий Node.js >= 4.x в старых дистрибутивах.
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_6.x | bash -apt-get install -y nodejs
Node.js v5.x:
ПРИМЕЧАНИЕ: Если вы используете Ubuntu Precise или Debian Wheezy, возможно, вам захочется прочитать о бегущий Node.js >= 4.x в старых дистрибутивах.
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_5.x | bash -apt-get install -y nodejs
Node.js v4.x:
ПРИМЕЧАНИЕ: Если вы используете Ubuntu Precise или Debian Wheezy, возможно, вам захочется прочитать о бегущий Node.js >= 4.x в старых дистрибутивах.
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_4.x | bash -apt-get install -y nodejs
Node.js v0.12:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_0.12 | bash -apt-get install -y nodejs
Node.js v0.10:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_0.10 | bash -apt-get install -y nodejs
io.js v3.x:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_iojs_3.x | sudo -E bash -sudo apt-get install -y iojs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_iojs_3.x | bash -apt-get install -y iojs
io.js v2.x:
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_iojs_2.x | sudo -E bash -sudo apt-get install -y iojs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_iojs_2.x | bash -apt-get install -y iojs
io.js v1.x:
Примечание: эта ветвь io.js активно не поддерживается и не рекомендуется для производственного использования.
# Using Ubuntucurl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo -E bash -sudo apt-get install -y iojs# Using Debian, as rootcurl -sL https://deb.nodesource.com/setup_iojs_1.x | bash -apt-get install -y iojs