Javascript 在节点上生成pkg可执行文件时不包括Phantomjs预构建
尝试使用Javascript 在节点上生成pkg可执行文件时不包括Phantomjs预构建,javascript,node.js,phantomjs,exe,Javascript,Node.js,Phantomjs,Exe,尝试使用pkg.生成可执行文件时,出现以下错误 pkg@4.4.9 > Targets not specified. Assuming: node12-linux-x64, node12-macos-x64, node12-win-x64 > Warning Cannot include file %1 into executable. The file must be distributed with executable as %2. %1: node_modules
pkg.
生成可执行文件时,出现以下错误
pkg@4.4.9
> Targets not specified. Assuming:
node12-linux-x64, node12-macos-x64, node12-win-x64
> Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules\phantom\lib\shim\index.js
%2: path-to-executable/phantom/index.js
> Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules\phantom\lib\shim\function_bind_polyfill.js
%2: path-to-executable/phantom/function_bind_polyfill.js
> Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules\phantom\lib\shim\index.js
%2: path-to-executable/phantom/index.js
> Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules\phantom\lib\shim\function_bind_polyfill.js
%2: path-to-executable/phantom/function_bind_polyfill.js
> Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs
%2: path-to-executable/phantom/phantomjs
> Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe
%2: path-to-executable/phantom/phantomjs.exe
> Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs
%2: path-to-executable/phantom/phantomjs
> Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe
%2: path-to-executable/phantom/phantomjs.exe
我无法正确运行没有phantomjs生成的可执行文件。如何解决