Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
superconvert authored Jul 9, 2024
1 parent 77c8f9e commit 036f488
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions web manager/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,36 +69,23 @@ Windows 环境:
2. pkg -t win server.js
~~~

Ubuntu 16.04
Ubuntu 16.04 需要在 Linux 的环境下制作
~~~shell
# 安装 pkg
1. npm install -g pkg
# 因为 node 的版本是 16,所以写成 node16,编译 server
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 下自行编译对应的版本
Expand Down

0 comments on commit 036f488

Please sign in to comment.