wip
This commit is contained in:
14
shell/dependencies.sh
Normal file
14
shell/dependencies.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if nodejs is installed
|
||||
if ! which nodejs > /dev/null; then
|
||||
|
||||
|
||||
# Node.js is not installed, setting up the NodeSource Node.js 21.x repo
|
||||
echo "Node.js not found. Setting up NodeSource Node.js 21.x repository..."
|
||||
curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash -
|
||||
|
||||
# Install Node.js from the NodeSource repository
|
||||
echo "Installing Node.js..."
|
||||
sudo apt-get install -y nodejs npm
|
||||
fi
|
||||
Reference in New Issue
Block a user