Giter VIP home page Giter VIP logo

Comments (9)

slee047 avatar slee047 commented on August 20, 2024 3

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

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

from node-packer.

fengmk2 avatar fengmk2 commented on August 20, 2024

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

from node-packer.

jakehu avatar jakehu commented on August 20, 2024

@slee047 给力

from node-packer.

jakehu avatar jakehu commented on August 20, 2024

@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

from node-packer.

slee047 avatar slee047 commented on August 20, 2024

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

from node-packer.

ferocknew avatar ferocknew commented on August 20, 2024

作者还在吗

from node-packer.

slee047 avatar slee047 commented on August 20, 2024

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

from node-packer.

VincentWuShiChao avatar VincentWuShiChao commented on August 20, 2024

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

from node-packer.

suntong avatar suntong commented on August 20, 2024

jakehu commented on Aug 17, 2018

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

from node-packer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.