Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/42.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
Node.js phantomjs-加载共享库时出错:libjpeg.so.8_Node.js_Linux_Phantomjs_Shared Libraries - Fatal编程技术网

Node.js phantomjs-加载共享库时出错:libjpeg.so.8

Node.js phantomjs-加载共享库时出错:libjpeg.so.8,node.js,linux,phantomjs,shared-libraries,Node.js,Linux,Phantomjs,Shared Libraries,我在运行phantomjs时出错 代码 错误 libjpeg.so.8属于Debian Jessie环境。 您可以下载该库并将其放入需要的文件夹中。libjpeg.so.8属于Debian Jessie环境。 您可以下载该库并将其放在中所需的文件夹中 var path = require('path'); var childProcess = require('child_process'); var phantomjs = require('/var/bin/node_modules/phan

我在运行phantomjs时出错

代码 错误
libjpeg.so.8属于Debian Jessie环境。
您可以下载该库并将其放入需要的文件夹中。

libjpeg.so.8属于Debian Jessie环境。 您可以下载该库并将其放在中所需的文件夹中

var path = require('path');
var childProcess = require('child_process');
var phantomjs = require('/var/bin/node_modules/phantomjs25-beta/bin/phantomjs');
var binPath = phantomjs.path

console.log('test');
# node phantomjs.js
test
/var/bin/node_modules/phantomjs25-beta/lib/phantom/bin/phantomjs: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory