node

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
node [08/01/2021 - 08:21] thommie4node [12/10/2024 - 18:54] (aktuell) admin
Zeile 1: Zeile 1:
 https://github.com/nodesource/distributions/blob/master/README.md https://github.com/nodesource/distributions/blob/master/README.md
 +https://reintech.io/blog/installing-nodejs-npm-debian-12
  
 +<code>
 curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
 # wget can also be used: # wget can also be used:
 # wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - # wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
 +</code>
  
-# Replace with the branch of Node.js or io.js you want to install: node_6.x, node_8.x, etc... +<code> 
-VERSION=node_8.x +curl -fsSL https://deb.nodesource.com/setup_21.| sudo -E bash 
-# The below command will set this correctly, but if lsb_release isn't available, you can set it manually: +sudo apt-get install -y nodejs 
-For Debian distributions: jessie, sid, etc... +</code>
-# - For Ubuntu distributions: xenial, bionic, etc... +
-# - For Debian or Ubuntu derived distributions your best option is to use the codename corresponding to the upstream release your distribution is based off. This is an advanced scenario and unsupported if your distribution is not listed as supported per earlier in this README. +
-DISTRO="$(lsb_release -s -c)" +
-echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list +
-echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list +
- +
-sudo apt-get update +
-sudo apt-get install nodejs +
  
  
  • node.1610094088.txt.gz
  • Zuletzt geändert: 17/08/2024 - 07:06
  • (Externe Bearbeitung)