Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash
- ## Installing the NodeSource Node.js 14.x repo...
- ## Populating apt-get cache...
- + apt-get update
- Hit:1 http://archive.raspberrypi.org/debian buster InRelease
- Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
- Reading package lists... Done
- ## Confirming "buster" is supported...
- + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/Release'
- ## Adding the NodeSource signing key to your keyring...
- + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
- gpg: WARNING: unsafe ownership on homedir '/home/pi/.gnupg'
- ## Creating apt sources list file for the NodeSource Node.js 14.x repo...
- + 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
- + 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
- ## Running `apt-get update` for you...
- + apt-get update
- Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
- Hit:2 http://archive.raspberrypi.org/debian buster InRelease
- Get:3 https://deb.nodesource.com/node_14.x buster InRelease [4,584 B]
- Get:4 https://deb.nodesource.com/node_14.x buster/main armhf Packages [780 B]
- Fetched 5,364 B in 2s (2,283 B/s)
- Reading package lists... Done
- ## Run `sudo apt-get install -y nodejs` to install Node.js 14.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 | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
- 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
- sudo apt-get update && sudo apt-get install yarn
- pi@raspberrypi:~ $ sudo apt-get install -y nodejs
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following NEW packages will be installed:
- nodejs
- 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
- Need to get 23.0 MB of archives.
- After this operation, 116 MB of additional disk space will be used.
- Get:1 https://deb.nodesource.com/node_14.x buster/main armhf nodejs armhf 14.18.0-deb-1nodesource1 [23.0 MB]
- Fetched 23.0 MB in 2s (11.7 MB/s)
- Selecting previously unselected package nodejs.
- (Reading database ... 41940 files and directories currently installed.)
- Preparing to unpack .../nodejs_14.18.0-deb-1nodesource1_armhf.deb ...
- Unpacking nodejs (14.18.0-deb-1nodesource1) ...
- Setting up nodejs (14.18.0-deb-1nodesource1) ...
- Processing triggers for man-db (2.8.5-2) ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement