From 036f488b2dde2ffeab32338d27ed09b4bdf98229 Mon Sep 17 00:00:00 2001 From: superconvert Date: Tue, 9 Jul 2024 11:49:21 +0800 Subject: [PATCH] Update README.md --- web manager/src/README.md | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/web manager/src/README.md b/web manager/src/README.md index cd1d5fc..7c33592 100644 --- a/web manager/src/README.md +++ b/web manager/src/README.md @@ -69,7 +69,7 @@ Windows 环境: 2. pkg -t win server.js ~~~ -Ubuntu 16.04 +Ubuntu 16.04 需要在 Linux 的环境下制作 ~~~shell # 安装 pkg 1. npm install -g pkg @@ -77,28 +77,15 @@ Ubuntu 16.04 2. pkg -t node16-linux server.js ~~~ -ARM64 +ARM64 需要在 ARM64 环境下制作 ~~~shell +# 检验 node 版本 +0. node -v +v14.6.0 # 安装 pkg 1. npm install -g pkg # 因为 node 的版本是 16,所以写成 node16,编译 server -2. pkg -t node16-linux-arm64 server.js --no-bytecode --public-packages "*" --public -# 参数 --no-bytecode --public-packages "*" --public 是解决下述问题的 -Error: spawn UNKNOWN - at ChildProcess.spawn (node:internal/child_process:414:11) - at spawn (node:child_process:761:9) - at fabricate (C:\Users\Admin\AppData\Roaming\npm\node_modules\pkg\lib-es5\fabricator.js:55:51) - at fabricateTwice (C:\Users\Admin\AppData\Roaming\npm\node_modules\pkg\lib-es5\fabricator.js:120:5) - at MultiStream._queue (C:\Users\Admin\AppData\Roaming\npm\node_modules\pkg\lib-es5\producer.js:271:68) - at MultiStream._next (C:\Users\Admin\AppData\Roaming\npm\node_modules\pkg\node_modules\multistream\index.js:86:12) - at Meter.onEnd (C:\Users\Admin\AppData\Roaming\npm\node_modules\pkg\node_modules\multistream\index.js:129:12) - at Object.onceWrapper (node:events:631:28) - at Meter.emit (node:events:517:28) - at endReadableNT (node:internal/streams/readable:1400:12) { - errno: -4094, - code: 'UNKNOWN', - syscall: 'spawn' -} +2. pkg -t node16-linux-arm64 server.js ~~~ linux 下自行编译对应的版本