node-packer icon indicating copy to clipboard operation
node-packer copied to clipboard

放弃维护了吗?

Open jakehu opened this issue 5 years ago • 9 comments

jakehu avatar Aug 17 '18 06:08 jakehu

不知道。但是你可以来我的 Repo 下载一样的 nodec,只是里面的 nodeJS 是 10.9.0 (Series10 的 branch) 或者 8.11.4 (master 的 branch):

https://github.com/slee047/node-packer

slee047 avatar Aug 23 '18 01:08 slee047

@slee047 非常给力,大家可以转移到 @slee047 的代码库中。

fengmk2 avatar Aug 23 '18 01:08 fengmk2

@slee047 给力

jakehu avatar Aug 23 '18 07:08 jakehu

@slee047 你好能咨询两个问题么? 我在项目文件夹下运行: 项目基于egg

ruby ../node-packer-1.6.0-8.11.4/bin/nodec node_modules/egg-bin/bin/egg-bin.js -r ./ ./

运行时配置项如下:

Node.js Compiler (nodec) v1.6.0
- entrance: /home/jakehu/Web/siege
- options: {:root=>"./", :npm=>"npm", :make_args=>"-j4", :vcbuild_args=>"x64", :output=>"/home/jakehu/Web/siege/a.out", :tmpdir=>"/tmp/nodec"}

rootDir为当前目录 ENTRANCE也为当前目录 最后得到a.out执行文件 在执行a.out时出现下面错误:

module.js:549
    throw err;
    ^

Error: Cannot find module '/__enclose_io_memfs__'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:205:16)
    at bootstrap_node.js:643:3

jakehu avatar Aug 23 '18 09:08 jakehu

@jakehu 不晓得,无法帮到。抱歉了。

slee047 avatar Aug 24 '18 01:08 slee047

作者还在吗

ferocknew avatar Mar 08 '19 06:03 ferocknew

@slee047 你好能咨询两个问题么? 我在项目文件夹下运行: 项目基于egg

ruby ../node-packer-1.6.0-8.11.4/bin/nodec node_modules/egg-bin/bin/egg-bin.js -r ./ ./

运行时配置项如下:

Node.js Compiler (nodec) v1.6.0
- entrance: /home/jakehu/Web/siege
- options: {:root=>"./", :npm=>"npm", :make_args=>"-j4", :vcbuild_args=>"x64", :output=>"/home/jakehu/Web/siege/a.out", :tmpdir=>"/tmp/nodec"}

rootDir为当前目录 ENTRANCE也为当前目录 最后得到a.out执行文件 在执行a.out时出现下面错误:

module.js:549
    throw err;
    ^

Error: Cannot find module '/__enclose_io_memfs__'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:205:16)
    at bootstrap_node.js:643:3

您好,请你试试看 https://github.com/slee047/node-packer/releases/tag/1.6.0-10.15.3-1

Node.js 10.15.3,我刚刚发现诸多 nodec 1.6.0-10.Y.Z 的之前都不能使用 Native module。刚刚修正了,不晓得是否对这个问题有帮助。

另外,请查看: https://github.com/slee047/node-packer/issues/9

我偶然发现到你们俩都和 Egg.js 有关啊。

slee047 avatar Apr 24 '19 09:04 slee047

@slee047 我也是打包的egg项目,但是打包好之后,在当前项目根目录下执行a.out确实能启动项目,但是好像他依赖app文件夹,以及node_modules文件夹,但是要是依赖app文件夹的话,那打包的意义也就没有了,是有什么样的配置吗

VincentWuShiChao avatar Jun 14 '19 00:06 VincentWuShiChao

jakehu commented on Aug 17, 2018

Oh, I should have checked here first. So my last two days have been wasted then. So sad...

suntong avatar Feb 18 '22 21:02 suntong