Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/421.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在节点上生成pkg可执行文件时不包括Phantomjs预构建_Javascript_Node.js_Phantomjs_Exe - Fatal编程技术网

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生成的可执行文件。如何解决