Files
jambonz-infrastructure/packer/jambonz-sbc-rtp/aws/scripts/install_nodejs.sh
Dave Horton 32f8b0a4be Feature/debian bookworm (#80)
updates to latest freeswitch (1.10.10), includes latest drachtio-freeswitch-modules with some fixes, updates to lws 4.3.2 (which has MIT License), and some fixes for debian bookworm though not working yet
2023-09-25 14:24:41 -04:00

20 lines
717 B
Bash

#!/bin/bash
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
sudo apt-get install nodejs -y
sudo npm install -g npm@latest
node -v
npm -v
sudo ls -lrt /root/.npm/
sudo ls -lrt /root/.npm/_logs
sudo ls -lrt /root/.npm/_cacache
sudo chmod -R a+wx /root
sudo chown -R 1000:1000 /root/.npm
ls -lrt /root/.npm/
ls -lrt /root/.npm/_logs
ls -lrt /root/.npm/_cacache