Skip to content

Commit 53114f7

Browse files
committed
Remove nodejs install, use Bun instead
1 parent 5c4dd64 commit 53114f7

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

scripts/linux/setup.sh

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -103,34 +103,6 @@ install_bun() {
103103
fi
104104
}
105105

106-
install_node() {
107-
if command_exists node; then
108-
NODE_VERSION=$(node --version | cut -d'v' -f2 | cut -d'.' -f1)
109-
if [ "$NODE_VERSION" -ge 18 ]; then
110-
print_success "Node.js is already installed ($(node --version))"
111-
return
112-
fi
113-
fi
114-
115-
print_status "Installing Node.js LTS..."
116-
case $DISTRO in
117-
"ubuntu")
118-
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
119-
sudo apt-get install -y nodejs
120-
;;
121-
"fedora")
122-
sudo dnf install -y nodejs npm
123-
;;
124-
"arch")
125-
sudo pacman -S --needed --noconfirm nodejs npm
126-
;;
127-
"opensuse")
128-
sudo zypper install -y nodejs18 npm18
129-
;;
130-
esac
131-
print_success "Node.js installation completed"
132-
}
133-
134106
install_project_deps() {
135107
print_status "Installing project dependencies..."
136108

@@ -139,9 +111,6 @@ install_project_deps() {
139111
if command_exists bun; then
140112
bun install
141113
print_success "Dependencies installed with Bun"
142-
elif command_exists npm; then
143-
npm install
144-
print_success "Dependencies installed with npm"
145114
else
146115
print_warning "Package manager not found, but continuing..."
147116
fi
@@ -181,7 +150,6 @@ main() {
181150
install_rust
182151
install_tauri_cli
183152
install_bun
184-
install_node
185153
install_project_deps
186154
verify_basic
187155

0 commit comments

Comments
 (0)