NoPaste

Re: probleme mit der node/npm installation auf Debian 9

von KBDCALLS
Beschreibung:
https://debianforum.de/forum/posting.php?mode=edit&f=27&p=1197706
Snippet erstellt:
10.02.2019 23:57:25
Snippet wird automatisch gelöscht:
Niemals

Dein Code:
  1. root@s550s2-debian:~# curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
  2.  
  3. ## Installing the NodeSource Node.js 11.x repo...
  4.  
  5.  
  6. ## Populating apt-get cache...
  7.  
  8. + apt-get update
  9. OK:1 http://security.debian.org/debian-security stretch/updates InRelease
  10. Ign:2 http://ftp.de.debian.org/debian stretch InRelease
  11. OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
  12. OK:4 http://ftp.de.debian.org/debian stretch Release
  13. OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
  14. OK:6 https://dl.yarnpkg.com/debian stable InRelease
  15. Paketlisten werden gelesen... Fertig
  16.  
  17. ## Confirming "stretch" is supported...
  18.  
  19. + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_11.x/dists/stretch/Release'
  20.  
  21. ## Adding the NodeSource signing key to your keyring...
  22.  
  23. + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
  24. OK
  25.  
  26. ## Creating apt sources list file for the NodeSource Node.js 11.x repo...
  27.  
  28. + echo 'deb https://deb.nodesource.com/node_11.x stretch main' > /etc/apt/sources.list.d/nodesource.list
  29. + echo 'deb-src https://deb.nodesource.com/node_11.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
  30.  
  31. ## Running `apt-get update` for you...
  32.  
  33. + apt-get update
  34. OK:1 http://security.debian.org/debian-security stretch/updates InRelease
  35. Ign:2 http://ftp.de.debian.org/debian stretch InRelease
  36. OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
  37. OK:4 http://ftp.de.debian.org/debian stretch Release
  38. OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
  39. OK:6 https://dl.yarnpkg.com/debian stable InRelease
  40. Paketlisten werden gelesen... Fertig
  41.  
  42. ## Run `sudo apt-get install -y nodejs` to install Node.js 11.x and npm
  43. ## You may also need development tools to build native addons:
  44.      sudo apt-get install gcc g++ make
  45. ## To install the Yarn package manager, run:
  46.      curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  47.      echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  48.      sudo apt-get update && sudo apt-get install yarn
  49.  
  50.  
  51. root@s550s2-debian:~# ^C
  52. root@s550s2-debian:~# apt-get update
  53. OK:1 http://security.debian.org/debian-security stretch/updates InRelease
  54. Ign:2 http://ftp.de.debian.org/debian stretch InRelease
  55. OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
  56. OK:4 http://ftp.de.debian.org/debian stretch Release
  57. OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
  58. OK:6 https://dl.yarnpkg.com/debian stable InRelease
  59. Paketlisten werden gelesen... Fertig
  60. root@s550s2-debian:~# apt-cache policy nodejs                                   nodejs:
  61.   Installiert:           4.8.2~dfsg-1
  62.   Installationskandidat: 4.8.2~dfsg-1
  63.   Versionstabelle:
  64.  *** 4.8.2~dfsg-1 500
  65.         500 http://ftp.de.debian.org/debian stretch/main i386 Packages
  66.         100 /var/lib/dpkg/status
  67. root@s550s2-debian:~# ^C
  68. root@s550s2-debian:~#  apt-get install -y nodejs
  69. Paketlisten werden gelesen... Fertig
  70. Abhängigkeitsbaum wird aufgebaut.
  71. Statusinformationen werden eingelesen.... Fertig
  72. nodejs ist schon die neueste Version (4.8.2~dfsg-1).
  73. 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
  74. root@s550s2-debian:~# echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  75. deb https://dl.yarnpkg.com/debian/ stable main
  76. root@s550s2-debian:~# curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
  77.  
  78. ## Installing the NodeSource Node.js 11.x repo...
  79.  
  80.  
  81. ## Populating apt-get cache...
  82.  
  83. + apt-get update
  84. OK:1 http://security.debian.org/debian-security stretch/updates InRelease
  85. Ign:2 http://ftp.de.debian.org/debian stretch InRelease
  86. OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
  87. OK:4 http://ftp.de.debian.org/debian stretch Release
  88. OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
  89. OK:6 https://dl.yarnpkg.com/debian stable InRelease
  90. Paketlisten werden gelesen... Fertig
  91.  
  92. ## Confirming "stretch" is supported...
  93.  
  94. + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_11.x/dists/stretch/Release'
  95.  
  96. ## Adding the NodeSource signing key to your keyring...
  97.  
  98. + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
  99. OK
  100.  
  101. ## Creating apt sources list file for the NodeSource Node.js 11.x repo...
  102.  
  103. + echo 'deb https://deb.nodesource.com/node_11.x stretch main' > /etc/apt/sources.list.d/nodesource.list
  104. + echo 'deb-src https://deb.nodesource.com/node_11.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
  105.  
  106. ## Running `apt-get update` for you...
  107.  
  108. + apt-get update
  109. OK:1 http://security.debian.org/debian-security stretch/updates InRelease
  110. Ign:2 http://ftp.de.debian.org/debian stretch InRelease
  111. OK:3 http://ftp.de.debian.org/debian stretch-updates InRelease
  112. OK:4 http://ftp.de.debian.org/debian stretch Release
  113. OK:5 https://deb.nodesource.com/node_11.x stretch InRelease
  114. OK:6 https://dl.yarnpkg.com/debian stable InRelease
  115. Paketlisten werden gelesen... Fertig
  116.  
  117. ## Run `sudo apt-get install -y nodejs` to install Node.js 11.x and npm
  118. ## You may also need development tools to build native addons:
  119.      sudo apt-get install gcc g++ make
  120. ## To install the Yarn package manager, run:
  121.      curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  122.      echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  123.      sudo apt-get update && sudo apt-get install yarn
  124.  
  125.  
  126. root@s550s2-debian:~#

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. Alternativ kannst du den gesamten Eintrag auch als Datei herunterladen.