Node.js installieren (Debian): Unterschied zwischen den Versionen

Aus MattWiki
(Die Seite wurde neu angelegt: „Anleitung für die Installation von Node.js und npm. == Node.js 6.1 auf Debian 8.x == === Download === # cd /opt # wget https://nodejs.org/dist/xxx/node-xxx…“)
 
Keine Bearbeitungszusammenfassung
Zeile 16: Zeile 16:
Optional (Wird evtl. wegen Make für Anwendungen, die auf Node.js aufbauen) benötigt:
Optional (Wird evtl. wegen Make für Anwendungen, die auf Node.js aufbauen) benötigt:
  apt-get install build-essentials
  apt-get install build-essentials
[[Category:Debian]]

Version vom 8. Mai 2016, 14:26 Uhr

Anleitung für die Installation von Node.js und npm.

Node.js 6.1 auf Debian 8.x

Download

# cd /opt
# wget https://nodejs.org/dist/xxx/node-xxx.tar.xz
# tar -xvJf node-xxx.tar.xz

Installation

Zum "Installieren" reicht es einen Link auf die folgenden Programme in einem Pfad zu machen, der ausführbar ist:

# cd /usr/local/bin
# ln -s /opt/node-xxx/bin/node ./node
# ln -s /opt/node-xxx/lib/node_modules/npm/bin/npm-cli.js ./npm


Optional (Wird evtl. wegen Make für Anwendungen, die auf Node.js aufbauen) benötigt:

apt-get install build-essentials