linux(統信)下搭建electron開發環境

Lecone.JY.HU發表於2024-11-18

1.安裝vs code

下載 地址 https://vscode.download.prss.microsoft.com/dbazure/download/stable/f1a4fb101478ce6ec82fe9627c43efbf9e98c813/code-stable-x64-1731511985.tar.gz

下載後複製壓縮包到安裝目錄下解壓縮. 點選code 就可以啟動.

2.安裝git

https://git-scm.com/downloads/linux

sudo apt update; apt install git

3.安裝nodejs

https://nodejs.org/en/download/package-manager

# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
# download and install Node.js (you may need to restart the terminal)
nvm install 22
# verifies the right Node.js version is in the environment
node -v # should print `v22.11.0`
# verifies the right npm version is in the environment
npm -v # should print `10.9.0`

4.使用code開啟專案目錄,使用 npm install 安裝外掛。

相關文章