SwitchHosts icon indicating copy to clipboard operation
SwitchHosts copied to clipboard

编译运行出错 请问nodejs版本是多少?

Open shenyuanheli opened this issue 3 years ago • 1 comments

System (Mac, Windows 7/8/10, Linux) / 操作系统

win11

SwitchHosts! Version / SwitchHosts! 版本

SwitchHosts-4.1.2

Description / 描述

这边用的是nodejs V16.16.0 ; npm 8.15.1 npm install通过,执行npm run build 和 npm run make 就会报错; image

How to reproduce / 重现步骤

必现的。

shenyuanheli avatar Aug 03 '22 03:08 shenyuanheli

nodejs v16.15.0 + npm 8.15.1 下测试没有问题,按理 nodejs v16.16.0 也应该可以。不过我是在 macOS 环境下运行的,可能存在一些平台差异,另外安装依赖时使用的就是 npm,而不是 pnpm 或 yarn 。

另外,npm run make 会生成 Windows + macOS + Linux 平台的安装包,Windows 下应该是无法生成 macOS 安装包的,可以试试 npm run make:win 命令,只生成 Windows 安装包。

oldj avatar Aug 03 '22 04:08 oldj