Advertisement
Guest User

node

a guest
Oct 3rd, 2021
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash
  2.  
  3. ## Installing the NodeSource Node.js 14.x repo...
  4.  
  5.  
  6. ## Populating apt-get cache...
  7.  
  8. + apt-get update
  9. Hit:1 http://archive.raspberrypi.org/debian buster InRelease
  10. Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
  11. Reading package lists... Done
  12.  
  13. ## Confirming "buster" is supported...
  14.  
  15. + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/Release'
  16.  
  17. ## Adding the NodeSource signing key to your keyring...
  18.  
  19. + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
  20. gpg: WARNING: unsafe ownership on homedir '/home/pi/.gnupg'
  21.  
  22. ## Creating apt sources list file for the NodeSource Node.js 14.x repo...
  23.  
  24. + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list
  25. + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list.d/nodesource.list
  26.  
  27. ## Running `apt-get update` for you...
  28.  
  29. + apt-get update
  30. Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
  31. Hit:2 http://archive.raspberrypi.org/debian buster InRelease
  32. Get:3 https://deb.nodesource.com/node_14.x buster InRelease [4,584 B]
  33. Get:4 https://deb.nodesource.com/node_14.x buster/main armhf Packages [780 B]
  34. Fetched 5,364 B in 2s (2,283 B/s)
  35. Reading package lists... Done
  36.  
  37. ## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm
  38. ## You may also need development tools to build native addons:
  39. sudo apt-get install gcc g++ make
  40. ## To install the Yarn package manager, run:
  41. curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
  42. echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  43. sudo apt-get update && sudo apt-get install yarn
  44.  
  45.  
  46. pi@raspberrypi:~ $ sudo apt-get install -y nodejs
  47. Reading package lists... Done
  48. Building dependency tree
  49. Reading state information... Done
  50. The following NEW packages will be installed:
  51. nodejs
  52. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  53. Need to get 23.0 MB of archives.
  54. After this operation, 116 MB of additional disk space will be used.
  55. Get:1 https://deb.nodesource.com/node_14.x buster/main armhf nodejs armhf 14.18.0-deb-1nodesource1 [23.0 MB]
  56. Fetched 23.0 MB in 2s (11.7 MB/s)
  57. Selecting previously unselected package nodejs.
  58. (Reading database ... 41940 files and directories currently installed.)
  59. Preparing to unpack .../nodejs_14.18.0-deb-1nodesource1_armhf.deb ...
  60. Unpacking nodejs (14.18.0-deb-1nodesource1) ...
  61. Setting up nodejs (14.18.0-deb-1nodesource1) ...
  62. Processing triggers for man-db (2.8.5-2) ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement