質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

Q&A

0回答

1999閲覧

PDF.js の環境構築のエラー

smman

総合スコア7

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

0グッド

0クリップ

投稿2016/02/15 11:55

PDF.jsをvagrant上のcentOSにインストールしようとしたのですが,うまく行かず詰まってしまいました.みなさんのお力をお借りできれば大変ありがたいです.

環境:
MacBook OS10.11.3(EI Capitan)
Vagrant 1.8.1
centOS 6.7
参考サイト:
PDF.js

  1. $ git clone git://github.com/mozilla/pdf.js.git

  2. $ cd pdf.js

  3. $ npm install

を実行したのですが 3. を実行した後以下のワーニングが出ました.

-------------------------------------中略--------------------------------- npm WARN optional dep failed, continuing fsevents@1.0.7 -------------------------------------中略--------------------------------- npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/init-package-json requires glob@'^5.0.3' but will load npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/glob, npm WARN unmet dependency which is version 6.0.3 npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/read-package-json requires glob@'^5.0.3' but will load npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/glob, npm WARN unmet dependency which is version 6.0.3 npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge requires has-unicode@'^1.0.0' but will load npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/has-unicode, npm WARN unmet dependency which is version 2.0.0 npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/npm-install-checks/node_modules/npmlog/node_modules/gauge requires has-unicode@'^1.0.0' but will load npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/has-unicode, npm WARN unmet dependency which is version 2.0.0 npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/npmlog/node_modules/gauge requires has-unicode@'^1.0.0' but will load npm WARN unmet dependency /home/vagrant/pdf.js/node_modules/wintersmith/node_modules/npm/node_modules/has-unicode, npm WARN unmet dependency which is version 2.0.0

その後,PDF.js のドキュメント通り,

$ node make server

を実行して

http://localhost:8888/web/viewer.html

にブラウザでアクセスしたのですがエラーが帰ってきました.

3. を実行した後のワーニングが原因だと思うのですが,いかにして修正すればよいのでしょうか.ご教授よろしくお願い致します.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問