See install-node-npm.sh
sudo apt install cloudflared -y
npm install next@latest react@latest react-dom@latest
#!/bin/bash | |
# This script is needed because the built-in Node.js env is still on 14 | |
echo "Use the bash Zybooks env" | |
sudo apt-get update | |
sudo apt-get install -y ca-certificates curl gnupg | |
NODE_MAJOR=20 | |
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list | |
sudo apt-get update --allow-insecure-repositories | |
sudo apt-get install nodejs -y --allow-unauthenticated | |
sudo apt install midori -y | |
echo "Now open the desktop and go to http://localhost:3000" |