Skip to content

Commit 4f9b05f

Browse files
committed
feat: use nodesource for Node.js installation
Replaced snap installation with nodesource setup for Node.js. For WSL (Windows Subsystem for Linux) and Docker environments, it is recommended to use the NodeSource repository when installing Node.js because it is difficult to run `snapd` with `systemd`. This method allows you to easily install and manage the latest version of Node.js. https://github.com/nodesource/distributions?tab=readme-ov-file#installation-instructions-deb
1 parent fb613ce commit 4f9b05f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: rails-install-ubuntu.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ echo "Install packages. Enter your password when asked."
1616
sudo apt-get --ignore-missing install build-essential git-core curl openssl libssl-dev libcurl4-openssl-dev zlib1g zlib1g-dev libreadline6-dev libyaml-dev libsqlite3-dev libsqlite3-0 sqlite3 libxml2-dev libxslt1-dev libffi-dev software-properties-common libgdm-dev libncurses5-dev automake autoconf libtool bison postgresql postgresql-contrib libpq-dev libc6-dev -y
1717

1818
echo "Install Node.js"
19-
sudo apt-get install -y snapd
20-
sudo snap install node --classic --channel=18
19+
curl -fsSL https://deb.nodesource.com/setup_23.x | sudo bash -
20+
sudo apt-get install -y nodejs
2121

2222
echo "Install ImageMagick for image processing"
2323
sudo apt-get install imagemagick --fix-missing -y

0 commit comments

Comments
 (0)