Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

放弃维护了吗? #129

Open
jakehu opened this issue Aug 17, 2018 · 9 comments
Open

放弃维护了吗? #129

jakehu opened this issue Aug 17, 2018 · 9 comments

Comments

@jakehu
Copy link

jakehu commented Aug 17, 2018

No description provided.

@slee047
Copy link
Contributor

slee047 commented Aug 23, 2018

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

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

@fengmk2
Copy link

fengmk2 commented Aug 23, 2018

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

@jakehu
Copy link
Author

jakehu commented Aug 23, 2018

@slee047 给力

@jakehu jakehu closed this as completed Aug 23, 2018
@jakehu jakehu reopened this Aug 23, 2018
@jakehu
Copy link
Author

jakehu commented Aug 23, 2018

@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

@slee047
Copy link
Contributor

slee047 commented Aug 24, 2018

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

@ferocknew
Copy link

作者还在吗

@slee047
Copy link
Contributor

slee047 commented Apr 24, 2019

@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 有关啊。

@VincentWuShiChao
Copy link

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

@suntong
Copy link

suntong commented Feb 18, 2022

jakehu commented on Aug 17, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants