linux(统信)下搭建electron开发环境
2024-11-18 15:14 Lecone.JY.HU 阅读(18) 评论(0) 编辑 收藏 举报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 安装插件。