Comments (9)
不知道。但是你可以来我的 Repo 下载一样的 nodec,只是里面的 nodeJS 是 10.9.0 (Series10 的 branch) 或者 8.11.4 (master 的 branch):
https://github.com/slee047/node-packer
from node-packer.
@slee047 非常给力,大家可以转移到 @slee047 的代码库中。
from node-packer.
@slee047 给力
from node-packer.
@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.
@jakehu 不晓得,无法帮到。抱歉了。
from node-packer.
作者还在吗
from node-packer.
@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.
@slee047 我也是打包的egg项目,但是打包好之后,在当前项目根目录下执行a.out确实能启动项目,但是好像他依赖app文件夹,以及node_modules文件夹,但是要是依赖app文件夹的话,那打包的意义也就没有了,是有什么样的配置吗
from node-packer.
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)
- npm installation?
- How to hide Windows command prompt after start a.exe file
- Cannot create destination file: No such file or directory HOT 3
- Linux Exceutable Decompiling
- Will there be Nodec with Node.js 10 LTS HOT 3
- Getting Error - No such file or directory @ rb_sysopen HOT 2
- How do I separate the configuration from being compiled? HOT 1
- nodec-v1.5.0-x64 throw errors "No such file or directory - node -pe process.arch"
- How to build nodec for Window? HOT 4
- Is ARM supported? HOT 1
- i don't know how to install Linux operating system HOT 1
- Windows version does not work (Win10, nodec 1.5.0 x64) HOT 3
- Can we resurrect node-packer to get it working with latest Node.js versions? HOT 35
- Assertion `backup_off == lseek_off' failed. HOT 2
- how to use the latest source code to build binary, instead of using the old 1.5.0 version? HOT 3
- ../deps/uv/include/uv.h:37:10: fatal error: enclose_io.h: No such file or directory HOT 4
- Can the packaged executable file effectively protect the source code? HOT 1
- fatal error: Killed signal terminated program cc1 HOT 1
- fatal error: enclose_io.h: No such file or directory
- Using node packer for node 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-packer.