windows下获取github的paf.js

来源:互联网 发布:早教管理软件 编辑:程序博客网 时间:2024/06/18 07:00

1.安装github和node,略过

注:github比较慢,建议直接在网上下载一个可直接安装的文件

2.按照https://github.com/mozilla/pdf.js的说明,两个步骤:

步骤一、Getting the Code

目标目录为:D:\project\pdfJS

通过cmd,在目标目录下运行:git clone git://github.com/mozilla/pdf.js.git 进行下载,(注:要多试几次,不好下载,原因大家都懂的)

个人下载成功显示的内容:

Cloning into 'pdf.js'...

remote: Counting objects: 42082, done.

remote: Compressing objects: 100% (8/8), done.

remote: Total 42082 (delta 1), reused 0 (delta 0), pack-reused 42074

Receiving objects: 100% (42082/42082), 58.98 MiB | 102.00 KiB/s, done.

Resolving deltas: 100% (28741/28741), done.

Checking connectivity... done.


下载成功后,按照说明分别运行:

cd pdf.js

npm install -g gulp-cli

npm install

gulp server

步骤二、Building PDF.js

   通过cmd,下载的目标下运行:gulp server,成功后:

[07:32:08] Using gulpfile D:\project\pdfJS\pdf.js\gulpfile.js

[07:32:08] Starting 'server'...


### Starting local server

Server running at http://localhost:8888/



0 0