瀏覽代碼

Update homarr-install.sh

test
tteckster 1 年之前
父節點
當前提交
ef222e11d4
共有 1 個文件被更改,包括 6 次插入8 次删除
  1. 6 8
      install/homarr-install.sh

+ 6 - 8
install/homarr-install.sh

@@ -28,18 +28,16 @@ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dea
 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
 msg_ok "Set up Node.js Repository"
 
-msg_info "Installing Node.js"
+msg_info "Installing Node.js/Yarn"
 $STD apt-get update
 $STD apt-get install -y nodejs
-$STD npm install next
-$STD npm instal react
-$STD npm instal react-dom
-msg_ok "Installed Node.js"
-
-msg_info "Installing Yarn"
+npm install -g npm@latest
 $STD npm install -g yarn
 $STD yarn global add prisma
-msg_ok "Installed Yarn"
+npm install next
+$STD npm instal react
+$STD npm instal react-dom
+msg_ok "Installed Node.js/Yarn"
 
 msg_info "Installing Homarr (Patience)"
 git clone -q https://github.com/ajnart/homarr.git /opt/homarr