Re: probleme mit der node/npm installation auf Debian 9
von KBDCALLS- SNIPPET_DESC:
- https://debianforum.de/forum/posting.php?mode=edit&f=27&p=1197706
- SNIPPET_CREATION_TIME:
- 10.02.2019 23:57:25
- SNIPPET_PRUNE_TIME:
- Unendlich
- SNIPPET_TEXT:
-
- root@s550s2-debian:~# curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
- ## Installing the NodeSource Node.js 11.x repo...
- ## Populating apt-get cache...
- + apt-get update
- OK:1 http://security.debian.org/debian-security stretch/updates InRelease
- Ign:2 http://ftp.de.debian.org/debian stretch InRelease
- OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
- OK:4 http://ftp.de.debian.org/debian stretch Release
- OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
- OK:6 https://dl.yarnpkg.com/debian stable InRelease
- Paketlisten werden gelesen... Fertig
- ## Confirming "stretch" is supported...
- + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_11.x/dists/stretch/Release'
- ## Adding the NodeSource signing key to your keyring...
- + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
- OK
- ## Creating apt sources list file for the NodeSource Node.js 11.x repo...
- + echo 'deb https://deb.nodesource.com/node_11.x stretch main' > /etc/apt/sources.list.d/nodesource.list
- + echo 'deb-src https://deb.nodesource.com/node_11.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
- ## Running `apt-get update` for you...
- + apt-get update
- OK:1 http://security.debian.org/debian-security stretch/updates InRelease
- Ign:2 http://ftp.de.debian.org/debian stretch InRelease
- OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
- OK:4 http://ftp.de.debian.org/debian stretch Release
- OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
- OK:6 https://dl.yarnpkg.com/debian stable InRelease
- Paketlisten werden gelesen... Fertig
- ## Run `sudo apt-get install -y nodejs` to install Node.js 11.x and npm
- ## You may also need development tools to build native addons:
- sudo apt-get install gcc g++ make
- ## To install the Yarn package manager, run:
- curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update && sudo apt-get install yarn
- root@s550s2-debian:~# ^C
- root@s550s2-debian:~# apt-get update
- OK:1 http://security.debian.org/debian-security stretch/updates InRelease
- Ign:2 http://ftp.de.debian.org/debian stretch InRelease
- OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
- OK:4 http://ftp.de.debian.org/debian stretch Release
- OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
- OK:6 https://dl.yarnpkg.com/debian stable InRelease
- Paketlisten werden gelesen... Fertig
- root@s550s2-debian:~# apt-cache policy nodejs nodejs:
- Installiert: 4.8.2~dfsg-1
- Installationskandidat: 4.8.2~dfsg-1
- Versionstabelle:
- *** 4.8.2~dfsg-1 500
- 500 http://ftp.de.debian.org/debian stretch/main i386 Packages
- 100 /var/lib/dpkg/status
- root@s550s2-debian:~# ^C
- root@s550s2-debian:~# apt-get install -y nodejs
- Paketlisten werden gelesen... Fertig
- Abhängigkeitsbaum wird aufgebaut.
- Statusinformationen werden eingelesen.... Fertig
- nodejs ist schon die neueste Version (4.8.2~dfsg-1).
- 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
- root@s550s2-debian:~# echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- deb https://dl.yarnpkg.com/debian/ stable main
- root@s550s2-debian:~# curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
- ## Installing the NodeSource Node.js 11.x repo...
- ## Populating apt-get cache...
- + apt-get update
- OK:1 http://security.debian.org/debian-security stretch/updates InRelease
- Ign:2 http://ftp.de.debian.org/debian stretch InRelease
- OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
- OK:4 http://ftp.de.debian.org/debian stretch Release
- OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
- OK:6 https://dl.yarnpkg.com/debian stable InRelease
- Paketlisten werden gelesen... Fertig
- ## Confirming "stretch" is supported...
- + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_11.x/dists/stretch/Release'
- ## Adding the NodeSource signing key to your keyring...
- + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
- OK
- ## Creating apt sources list file for the NodeSource Node.js 11.x repo...
- + echo 'deb https://deb.nodesource.com/node_11.x stretch main' > /etc/apt/sources.list.d/nodesource.list
- + echo 'deb-src https://deb.nodesource.com/node_11.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
- ## Running `apt-get update` for you...
- + apt-get update
- OK:1 http://security.debian.org/debian-security stretch/updates InRelease
- Ign:2 http://ftp.de.debian.org/debian stretch InRelease
- OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
- OK:4 http://ftp.de.debian.org/debian stretch Release
- OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
- OK:6 https://dl.yarnpkg.com/debian stable InRelease
- Paketlisten werden gelesen... Fertig
- ## Run `sudo apt-get install -y nodejs` to install Node.js 11.x and npm
- ## You may also need development tools to build native addons:
- sudo apt-get install gcc g++ make
- ## To install the Yarn package manager, run:
- curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update && sudo apt-get install yarn
- root@s550s2-debian:~#
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN