Change nodejs version

main
Filip Borum Poulsen 1 year ago
parent 1c63aa5d9b
commit 36b1fe6b6f

@ -4,7 +4,13 @@ cd ~
# Install the required packages
sudo apt update -y
sudo apt install -y git curl wget nodejs npm
sudo apt install -y git curl wget
# Install Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
source ~/.bashrc
nvm install 22.12.0
nvm use 22.12.0
git clone https://git.bpfilip.dk/fbp/remote-relay.git

@ -4,7 +4,7 @@ After=multi-user.target
[Service]
WorkingDirectory=/home/pi/remote-relay
ExecStart=node /home/pi/remote-relay/index.js
ExecStart=/home/pi/.nvm/versions/node/v22.12.0/bin/node /home/pi/remote-relay/index.js
User=1000
Group=1000
Restart=always

Loading…
Cancel
Save