安装yslowjs

原创 2015年07月08日 18:28:22

基于这篇文章:http://blog.csdn.net/qdujunjie/article/details/46806441

安装完nodejs和npm之后,我们来安装yslowjs。

参考这篇文章:http://mervine.net/projects/npms/yslowjs

sudo npm install yslowjs

安装成功:

[wz@supportserver-51 node-v0.12.6]$ sudo npm install yslowjs
-\|/-\|/-\|/-\-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-npm WARN engine phapper@0.1.11: wanted: {"node":">=0.10 <0.11"} (current: {"node":"0.12.6","npm":"2.11.2"})
-\|/-\|/-\|/-\|/
> phapper@0.1.11 install /usr/local/nodejs/node-v0.12.6/node_modules/yslowjs/node_modules/phapper
> node install.js

which: no phantomjs in (/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/nodejs/node-v0.12.6/node_modules/yslowjs/node_modules/phapper/node_modules/.bin:/usr/local/nodejs/node-v0.12.6/node_modules/yslowjs/node_modules/.bin:/usr/local/nodejs/node-v0.12.6/node_modules/.bin:/usr/bin:/bin:/usr/sbin:/sbin)
--2015-07-08 17:41:54--  https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
Resolving bitbucket.org... 131.103.20.167, 131.103.20.168
Connecting to bitbucket.org|131.103.20.167|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://bbuseruploads.s3.amazonaws.com/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2?Signature=ivgec%2Bt6KsGzdLA4Pw3sl%2FWrrXU%3D&Expires=1436349487&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82&response-content-disposition=attachment%3B%20filename%3D%22phantomjs-1.9.8-linux-x86_64.tar.bz2%22 [following]
--2015-07-08 17:41:58--  https://bbuseruploads.s3.amazonaws.com/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2?Signature=ivgec%2Bt6KsGzdLA4Pw3sl%2FWrrXU%3D&Expires=1436349487&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82&response-content-disposition=attachment%3B%20filename%3D%22phantomjs-1.9.8-linux-x86_64.tar.bz2%22
Resolving bbuseruploads.s3.amazonaws.com... 54.231.1.65
Connecting to bbuseruploads.s3.amazonaws.com|54.231.1.65|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13163325 (13M) [application/x-tar]
Saving to: “phantomjs-1.9.8-linux-x86_64.tar.bz2?Signature=ivgec+t6KsGzdLA4Pw3sl%2FWrrXU=&Expires=1436349487&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82&response-content-disposition=attachment; filename="phantomjs-1.9.8-linux-x86_64.tar.bz2"100%[====================================================================================================================================================>] 13,163,325  1.13M/s   in 14s     

2015-07-08 17:42:15 (940 KB/s) - “phantomjs-1.9.8-linux-x86_64.tar.bz2?Signature=ivgec+t6KsGzdLA4Pw3sl%2FWrrXU=&Expires=1436349487&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82&response-content-disposition=attachment; filename="phantomjs-1.9.8-linux-x86_64.tar.bz2"” saved [13163325/13163325]

Decompressing phantomjs-1.9.8-linux-x86_64.tar.bz2...
tar (child): phantomjs-1.9.8-linux-x86_64.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Error occured decompressing phantomjs-1.9.8-linux-x86_64.tar.bz2.

> yslowjs@0.3.2 install /usr/local/nodejs/node-v0.12.6/node_modules/yslowjs
> node install.js

yslow.js is installed.
=> /usr/local/nodejs/node-v0.12.6/node_modules/yslowjs/lib/yslow_phantom.js

You can reference it within node like so:

  var YSlow = require('yslow');
  var yslow = new YSlow(url, args);
  console.log(yslow.yslowjs);

yslowjs@0.3.2 node_modules/yslowjs
└── phapper@0.1.11 (sync-exec@0.5.0)
[wz@supportserver-51 node-v0.12.6]$ 
版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

mysql 二进制安装包

  • 3天前 14:30
  • 300.01MB
  • 下载

vue-cli脚手架安装教程2017

1.首先下载node.js,下载地址:http://nodejs.cn/download/ 2.安装node.js,跟安装普通软件一样 3.打开命令行,输入node -v,显示版本号表名安装成功,如下...

DataStage8.7安装步骤图解

重装ubuntu后的第3~6天——主要是pcl的安装

感觉太长不看的,直接拖到最后红色链接就行,除此之外的都只是我个人随便写写的,不看也损失不大。 …………………………………………………………………………………………………………………………………………...

MySQL5.7安装包

  • 6天前 10:57
  • 18.39MB
  • 下载

vega prime安装步骤

  • 2017-10-15 11:23
  • 255KB
  • 下载

ELKF之elasticsearch安装配置

ELKF之elasticsearch安装配置 第三方依赖 下载安装 配置 配置系统参数 配置环境变量 配置 启动管理ELKF之elasticsearch安装配置第三方依赖 java运行环境 java...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)