Nexe编译错误,丢失文件? Node.js的

时间:2016-08-02 15:36:12

标签: javascript node.js

我使用此命令将js脚本打包到使用Nexe的可移植包中。

nexe -i ./compressed.js -o ./compiledcode

但是等了一个多小时之后才做了很多事情,把它打包了,但是当我启动编译的代码文件时,我得到了这个错误。

compiledjs ozziepeck$ ./compiledcode
bootstrap_node.js:393
throw new Error(`No such native module ${id}`);
^

Error: No such native module ./charset.js
at NativeModule.require (bootstrap_node.js:393:13)
at s (nexe.js:1:176)
at nexe.js:1:367
at nexe.js:22625:16
at Array.forEach (native)
at Object.__dirname.88 (nexe.js:22623:18)
at s (nexe.js:1:316)
at nexe.js:1:367
at Object.__dirname.84.mime-types (nexe.js:16004:18)
at s (nexe.js:1:316)

0 个答案:

没有答案
相关问题