2015-06-30 5 views
1

я получаю проблемы при настройке PhantomJS на Ubuntu 14.04, я использовал НПМ, чтобы установить его, но он не работает, а установка останавливается на «70%» ...Проблема с установкой PhantomJS

Command : Суд НОЙ установка phantomjs --save

 
> [email protected] install /var/www/gestiaweb/GestionDettes.3000/node_modules/phantomjs 
> node install.js 

Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 
Saving to /var/www/gestiaweb/GestionDettes.3000/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2 
Receiving... 
    [============================------------] 70% 0.0s 
Received 12854K total. 
Extracting tar contents (via spawned process) 
Removing /var/www/gestiaweb/GestionDettes.3000/node_modules/phantomjs/lib/phantom 
Copying extracted folder /var/www/gestiaweb/GestionDettes.3000/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2-extract-1435657830806/phantomjs-1.9.8-linux-x86_64 -> /var/www/gestiaweb/GestionDettes.3000/node_modules/phantomjs/lib/phantom 
Writing location.js file 
Done. Phantomjs binary available at /var/www/gestiaweb/GestionDettes.3000/node_modules/phantomjs/lib/phantom/bin/phantomjs 
[email protected] node_modules/phantomjs 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected]) 
├── [email protected] 
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
[email protected]:/var/www/gestiaweb/GestionDettes.3000$ 
+2

Похоже, он установлен штраф мне, процент может быть неверно, если он загружается в куски. Вы пытались запустить его? –

+0

Да, он не работает при запуске, 'html-pdf' не создает никакого PDF-файла. 'html-pdf' устанавливает сам' phantomjs' ... – tonymx227

ответ

3

Поместите исполняемый файл в каталог, который находится в PATH (или поместить в PATH симлинка) или позволить НОМУ установить его глобально:

 
npm -g install phantomjs 
+0

, или если он установлен, то делает только 'ln' из bin of phantomjs – DarckBlezzer