Replies: 5 comments 1 reply
-
|
试试安装一下相关构建工具呢 npm install --global --production windows-build-tools |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
这个是电脑本地开发环境的问题,不属于本项目的bug,所以转换到这里来回复。 如果不介意的话可以参考我的这个一件配置脚本,我自己在部署打包机的时候会使用这个脚本把electron相关的一些依赖都装好(参考 github action的默认镜像的配置写的) https://github.com/zerob13/electron-bootup-kit/blob/master/windows.ps1 |
Beta Was this translation helpful? Give feedback.
-
没有问题。。。而且我还搞了个 windows sandbox ,用这个脚本装完后直接运行也是好的
|
Beta Was this translation helpful? Give feedback.
-
|
我的环境如下,可能可以给你一些参考 |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
System details / 系统信息
win11、node 22.18.0、pnpm 10.26.1
What's wrong? / 出了什么问题?
WARN 11 deprecated subdependencies found: @npmcli/move-file@2.0.1, @types/json-stable-stringify@1.2.0, boolean@3.2.0, glob@7.2.3, glob@8.1.0, inflight@1.0.6, lodash.isequal@4.5.0, node-domexception@1.0.0, q@1.5.1, rimraf@2.6.3, rimraf@3.0.2
Packages: +1
+
Progress: resolved 1458, reused 1334, downloaded 1, added 1, done
. postinstall$ electron-builder install-app-deps && simple-git-hooks
│ • electron-builder version=26.0.12
│ • loaded configuration file=D:\web_proj\MCP\A-deepchat-upstream\electron-builder.yml
│ • executing @electron/rebuild electronVersion=37.10.3 arch=x64 buildFromSource=false appDir=./
│ • installing native dependencies arch=x64
│ • preparing moduleName=better-sqlite3-multiple-ciphers arch=x64
│ • finished moduleName=better-sqlite3-multiple-ciphers arch=x64
│ • preparing moduleName=node-pty arch=x64
│ ⨯ gyp verb clean removing "build" directory
│ gyp verb download using dist-url https://www.electronjs.org/headers
│ gyp verb find Python Python is not set from command line or npm configuration
│ gyp verb find Python Python is not set from environment variable PYTHON
│ gyp verb find Python checking if the py launcher can be used to find Python 3
│ gyp verb find Python - executing "py.exe" to get Python 3 executable path
│ gyp sill find Python execFile: exec = "py.exe"
│ gyp sill find Python execFile: args = ["-3","-c","import sys; sys.stdout.buffer.write(sys.executable.encode('utf-8'));"]
│ gyp sill find Python execFile: opts = {"env":
Beta Was this translation helpful? Give feedback.
All reactions