From 6d3d10f7a7a00fc5cc2bc564b7ac38771479e691 Mon Sep 17 00:00:00 2001 From: naibo Date: Tue, 15 Oct 2024 05:39:51 +0800 Subject: [PATCH] Update Readme for building Electron Program --- ElectronJS/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElectronJS/README.md b/ElectronJS/README.md index 4731450..46d34a8 100644 --- a/ElectronJS/README.md +++ b/ElectronJS/README.md @@ -197,7 +197,7 @@ npx electron-forge import 如果任务执行到`npm install electron-squirrel-startup`的步骤时卡死,请参考下面的换源教程:[https://blog.csdn.net/qq_38463737/article/details/140277803](https://blog.csdn.net/qq_38463737/article/details/140277803)。 -Windows端如果在运行`npm run package`的时候提示`node-gyp`相关的错误,可以安装`electron-rebuild`: +Windows端如果在运行`npm run package`的时候提示`node-gyp`相关的错误,可以安装`electron-rebuild`并重新编译相关模块: ```sh npm install --save-dev electron-rebuild @@ -217,7 +217,7 @@ npx electron-forge import If the task is stuck at the `npm install electron-squirrel-startup` step, please refer to the following tutorial on changing the source: [https://blog.csdn.net/qq_38463737/article/details/140277803](https://blog.csdn.net/qq_38463737/article/details/140277803). -If you encounter `node-gyp` related errors when running `npm run package` on Windows, you can install `electron-rebuild`: +If you encounter `node-gyp` related errors when running `npm run package` on Windows, you can install `electron-rebuild` and recompile the relevant modules: ```sh npm install --save-dev electron-rebuild